move variable to pyi file
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Aug 2019 07:17:24 +0000 (08:17 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 17 Aug 2019 07:17:24 +0000 (08:17 +0100)
src/ieee754/part_mul_add/multiply.py
src/ieee754/part_mul_add/multiply.pyi

index be736e8e5240bb0822dd7c458990325a024f6d51..0fe18051eabadc2baeaa3b04537d79891ea82041 100644 (file)
@@ -313,7 +313,6 @@ class AddReduce(Elaboratable):
                 m.d.comb += self.output.eq(adder.output)
             return m
         # go on to handle recursive case
-        intermediate_terms: List[Signal]
         intermediate_terms = []
 
         def add_intermediate_term(value):
index e96c59743721f3cd3114f69d4c67dc77cf9f9268..deada23812226a1b1a74aea14af275a52557f469 100644 (file)
@@ -64,8 +64,7 @@ class AddReduce(Elaboratable):
         ...
 
     def elaborate(self, platform: Any) -> Module:
-        ...
-
+        intermediate_terms: List[Signal]
         def add_intermediate_term(value: Value) -> None:
             ...