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
Fixes#4027
Currently overloads on `Type[...]` don't accept class objects whose `__init__` is itself overloaded. I fix this by simply allowing `FunctionLike` with `.is_type_obj()` returning `True` instead of only `Callable`.
I have an overloaded function that instantiates a class:
Type checking with mypy (using latest from master branch) results in the error:
Removing the overload prevents the error:
Is this a bug or user error?
thanks!
The text was updated successfully, but these errors were encountered: