Skip to content

Commit daba000

Browse files
committed
Fixes for svgpcb library generation
1 parent 001f4cf commit daba000

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

edg/abstract_parts/AbstractAntenna.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
@abstract_block
88
class Antenna(Interface, Block):
99
@init_in_parent
10-
def __init__(self, frequency: RangeLike, impedance: RangeLike = Range.all(), power: RangeLike = (0, 0*Watt)):
10+
def __init__(self, frequency: RangeLike, impedance: RangeLike = Range.all(), power: RangeLike = (0, 0)*Watt):
1111
super().__init__()
1212

1313
self.frequency = self.ArgParameter(frequency)

edg/electronics_model/KiCadSchematicParser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414

1515
TestCastType = TypeVar('TestCastType')
16-
def test_cast(x: Any, type: Type[TestCastType]) -> TestCastType:
16+
def test_cast(x: Any, tpe: Type[TestCastType]) -> TestCastType:
1717
"""Combination of (dynamic) isinstance test and static typing cast."""
18-
assert isinstance(x, type)
18+
assert isinstance(x, tpe), f"got {x} of type {type(x)}, expected {tpe}"
1919
return x
2020

2121
def extract_only(x: List[TestCastType]) -> TestCastType:

0 commit comments

Comments
 (0)