Skip to content

Commit

Permalink
Merge pull request #235 from gdsfactory/fix_port_type
Browse files Browse the repository at this point in the history
Fix type annotation for port
  • Loading branch information
joamatab authored Nov 16, 2023
2 parents 381552d + 4a5d8e7 commit 7d46f67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gplugins/common/base_models/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def _gds_bbox(self) -> tuple[tuple[float, float], tuple[float, float]]:
return tuple(map(tuple, bbox))

@cached_property
def ports(self) -> dict[str, gf.Port]:
def ports(self) -> tuple[gf.Port, ...]:
return tuple(
p.move_polar_copy(
self.extend_ports + self.pad_xy_inner - self.port_offset, p.orientation
Expand Down

0 comments on commit 7d46f67

Please sign in to comment.