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
Any can also be used as a base class. This can be useful for avoiding type checker errors with classes that can duck type anywhere or are highly dynamic.
The typing spec says
But this leaves some cases unclear. The unclear cases are described in https://discuss.python.org/t/take-2-rules-for-subclassing-any/47981
One possible solution was explored in #1672, but rejected due to issues uncovered in https://discuss.python.org/t/take-2-rules-for-subclassing-any/47981/19
The text was updated successfully, but these errors were encountered: