Closed shorie000 closed 1 year ago
When class is set to tapify, the created instance is returned as type[class], not type class.
type[class]
class
For example, if I create an ABC class and input it to the tapify function, the return type is type[ABC], not ABC.
ABC
tapify
type[ABC]
So change input type of tapify from Union[Callable[[InputType], OutputType], OutputType] to Union[Callable[[InputType], OutputType], Type[OutputType]]
Union[Callable[[InputType], OutputType], OutputType]
Union[Callable[[InputType], OutputType], Type[OutputType]]
Thank you for the fix! It looks great!
--JK
When class is set to tapify, the created instance is returned as
type[class]
, not typeclass
.For example, if I create an
ABC
class and input it to thetapify
function, the return type istype[ABC]
, notABC
.So change input type of tapify from
Union[Callable[[InputType], OutputType], OutputType]
toUnion[Callable[[InputType], OutputType], Type[OutputType]]