mirror of
https://github.com/ehw-fit/ariths-gen.git
synced 2025-04-10 09:12:11 +01:00
Additional type hint fix.
This commit is contained in:
parent
73101eb055
commit
21a6437eb8
@ -1,6 +1,7 @@
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
from typing import Union
|
||||||
|
|
||||||
from ariths_gen.wire_components import (
|
from ariths_gen.wire_components import (
|
||||||
Wire,
|
Wire,
|
||||||
@ -44,7 +45,7 @@ class UnsignedPopCount(GeneralCircuit):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, a: Bus, adder : ArithmeticCircuit|None = None, prefix : str = "", name : str = "popcnt", **kwargs):
|
def __init__(self, a: Bus, adder : Union[ArithmeticCircuit, None] = None, prefix : str = "", name : str = "popcnt", **kwargs):
|
||||||
self.N = a.N
|
self.N = a.N
|
||||||
self.a = a
|
self.a = a
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user