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
In general, it is difficult to make runtime type checks reliable enough. This is why it was decided, to remove this functionality (and some other) in favour of static type checkers like mypy, pytype, etc. This also allowed to make typing module faster.
Instead, a set of tools is being developed now in #377 that will allow users to build efficiently their own runtime checks tuned to their specific needs. The set of tools will contain functions like is_union_type, is_generic_type, get_args, etc. For example, using such tools one could define:
In 3.5, I was able to test for optional and parameter types by:
The issubclass method is no longer allowed in 3.6. How do I accomplish the equivalent in 3.6 on?
The text was updated successfully, but these errors were encountered: