-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors
Description
I have a type which returns a string in __reduce__ which leads to a mypy failure:
Return type "str" of "__reduce__" incompatible with return type "Tuple[Any, ...]" in supertype "object"
According to the __reduce__ documentation this method can return a string or a Tuple.
Would it make sense to change the typing to __reduce__(self) -> Union[str, Tuple[Any, ...]]: ...?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
stubs: false positiveType checkers report false errorsType checkers report false errors