Closed elpekenin closed 3 months ago
T = TypeVar("T", bound=Union[builtins.complex, ulab.numpy.ndarray])
to indicate that the output is the same type as input would be slightly better, i can change it if prefered, but thought it would be best to keep things simple
Thanks!
Very tiny PR :)
Noticed this while looking though CircuitPython's typing issues.
Might as well hint
real()
andimag()
withbuiltins.complex
too, but since it seems not to be supported yet, decided to only hint the supported types even though it contradicts the docstrings.