You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…Tuple[Any, ...]] (#3453)
This allows subclasses to return strings (which are allowed) from these
methods without having mypy throwing an error.
Closes#3452
I have a type which returns a string in
__reduce__
which leads to a mypy failure: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, ...]]: ...
?The text was updated successfully, but these errors were encountered: