@@ -106,7 +106,7 @@ def __init__(self, capacitance: RangeLike, voltage: RangeLike, *,
106106 self .actual_capacitance = self .Parameter (RangeExpr ())
107107 self .actual_voltage_rating = self .Parameter (RangeExpr ())
108108
109- def contents (self ):
109+ def contents (self ) -> None :
110110 super ().contents ()
111111
112112 self .description = DescriptionString (
@@ -149,7 +149,7 @@ def parse_capacitor(cls, value: str) -> Tuple[Range, Range]:
149149 def block_from_symbol (cls , symbol_name : str , properties : Mapping [str , str ]) -> 'Capacitor' :
150150 return Capacitor (* cls .parse_capacitor (properties ['Value' ]))
151151
152- def __init__ (self , * args , ** kwargs ) -> None :
152+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
153153 super ().__init__ (* args , ** kwargs )
154154
155155 self .pos = self .Port (Passive .empty ())
@@ -176,7 +176,7 @@ class TableCapacitor(PartsTableSelector, Capacitor):
176176 NOMINAL_CAPACITANCE = PartsTableColumn (float ) # nominal capacitance, even with asymmetrical tolerances
177177 VOLTAGE_RATING = PartsTableColumn (Range )
178178
179- def __init__ (self , * args , ** kwargs ) :
179+ def __init__ (self , * args : Any , ** kwargs : Any ) -> None :
180180 super ().__init__ (* args , ** kwargs )
181181 self .generator_param (self .capacitance , self .voltage , self .voltage_rating_derating , self .exact_capacitance )
182182
@@ -217,7 +217,7 @@ class TableDeratingCapacitor(TableCapacitor):
217217 DERATE_LOWEST = 0.2 # floor for maximum derating factor
218218 # LOOSELY approximated from https://www.maximintegrated.com/en/design/technical-documents/tutorials/5/5527.html
219219
220- def __init__ (self , * args , single_nominal_capacitance : RangeLike = (0 , 22 )* uFarad , ** kwargs ):
220+ def __init__ (self , * args : Any , single_nominal_capacitance : RangeLike = (0 , 22 )* uFarad , ** kwargs : Any ):
221221 super ().__init__ (* args , ** kwargs )
222222 self .single_nominal_capacitance = self .ArgParameter (single_nominal_capacitance )
223223 self .generator_param (self .single_nominal_capacitance )
@@ -290,7 +290,7 @@ class DummyCapacitorFootprint(DummyDevice, Capacitor, FootprintBlock):
290290 """
291291 def __init__ (self , footprint : StringLike = "" , manufacturer : StringLike = "" , part_number : StringLike = "" ,
292292 value : StringLike = "" ,
293- * args , ** kwargs ):
293+ * args : Any , ** kwargs : Any ):
294294 super ().__init__ (* args , ** kwargs )
295295
296296 self .footprint (
@@ -363,7 +363,7 @@ def connected(self, gnd: Optional[Port[GroundLink]] = None, io: Optional[Port[An
363363
364364
365365class CombinedCapacitorElement (Capacitor ): # to avoid an abstract part error
366- def contents (self ):
366+ def contents (self ) -> None :
367367 super ().contents ()
368368 self .assign (self .actual_capacitance , self .capacitance ) # fake it, since a combined capacitance is handwavey
369369
@@ -391,7 +391,7 @@ def __init__(self, *, extend_upper: BoolLike = False) -> None:
391391 self .generator_param (self .pos .requested (), self .neg .requested (), self .extend_upper )
392392
393393
394- def generate (self ):
394+ def generate (self ) -> None :
395395 super ().generate ()
396396 capacitance = self .capacitances .sum ()
397397 if self .get (self .extend_upper ):
0 commit comments