Skip to content

Commit 89d4e8c

Browse files
committed
Fix issue with Package type name
1 parent d3f0399 commit 89d4e8c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chipflow_lib/platforms/_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,9 +566,9 @@ class Package(pydantic.BaseModel):
566566
"""
567567
Serialisable identifier for a defined packaging option
568568
Attributes:
569-
type: Package type
569+
package_type: Package type
570570
"""
571-
type: PackageDef = pydantic.Field(discriminator="package_type")
571+
package_type: PackageDef = pydantic.Field(discriminator="package_type")
572572

573573
# TODO: minimise names into more traditional form
574574
def _linear_allocate_components(interfaces: dict, lockfile: LockFile | None, allocate, unallocated) -> PortMap:
@@ -639,7 +639,7 @@ def register_component(self, name: str, component: wiring.Component) -> None:
639639

640640
def _get_package(self) -> Package:
641641
assert self is not Self
642-
return Package(type=self) # type: ignore
642+
return Package(package_type=self) # type: ignore
643643

644644
def _allocate_bringup(self, config: 'Config') -> Component:
645645
cds = set(config.chipflow.clock_domains) if config.chipflow.clock_domains else set()

0 commit comments

Comments
 (0)