Skip to content

Commit e7f6a8d

Browse files
committed
Fix issue with Package type name
1 parent 9750f08 commit e7f6a8d

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
@@ -565,9 +565,9 @@ class Package(pydantic.BaseModel):
565565
"""
566566
Serialisable identifier for a defined packaging option
567567
Attributes:
568-
type: Package type
568+
package_type: Package type
569569
"""
570-
type: PackageDef = pydantic.Field(discriminator="package_type")
570+
package_type: PackageDef = pydantic.Field(discriminator="package_type")
571571

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

639639
def _get_package(self) -> Package:
640640
assert self is not Self
641-
return Package(type=self) # type: ignore
641+
return Package(package_type=self) # type: ignore
642642

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

0 commit comments

Comments
 (0)