def getVectorFromType ( self , dtype ) -> Union [ bool , None , Tuple [ int , int ] ] : if dtype == BIT : return False elif isinstance ( dtype , Bits ) : return [ evalParam ( dtype . width ) - 1 , hInt ( 0 ) ]
python unsupported operand type for nonetype
: see : doc of method on parent class
def getVectorFromType(self, dtype) -> Union[bool, None, Tuple[int, int]]:
        """
        :see: doc of method on parent class
        """
        if dtype == BIT:
            return False
        elif isinstance(dtype, Bits):
            return [evalParam(dtype.width) - 1, hInt(0)]