Additional type hint fix.

This commit is contained in:
honzastor 2024-03-27 23:19:40 +01:00
parent 73101eb055
commit 21a6437eb8

View File

@ -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