format + module update

This commit is contained in:
Arnav Sacheti
2025-10-13 22:06:51 -07:00
parent 54a199ca9c
commit 066d9ca99e
12 changed files with 109 additions and 139 deletions

View File

@@ -1,16 +1,17 @@
from typing import TYPE_CHECKING
import functools
from typing import TYPE_CHECKING
from peakrdl.plugins.exporter import ExporterSubcommandPlugin
from peakrdl.config import schema
from peakrdl.plugins.entry_points import get_entry_points
from peakrdl.plugins.exporter import ExporterSubcommandPlugin
from .exporter import BusDecoderExporter
from .cpuif import BaseCpuif, apb3, apb4
from .exporter import BusDecoderExporter
from .udps import ALL_UDPS
if TYPE_CHECKING:
import argparse
from systemrdl.node import AddrmapNode
@@ -23,7 +24,7 @@ class Exporter(ExporterSubcommandPlugin):
"cpuifs": {"*": schema.PythonObjectImport()},
}
@functools.lru_cache()
@functools.lru_cache
def get_cpuifs(self) -> dict[str, type[BaseCpuif]]:
# All built-in CPUIFs
cpuifs: dict[str, type[BaseCpuif]] = {