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
mypy raises the following type-arg error : error: Missing type parameters for generic type "LoggerAdapter"
According to this type stub it's typed as a generic and should be passed the type of the logger it's an adapter for. However, changing the code into this:
makes mypy happy but raises an error at runtime: TypeError: 'type' object is not subscriptable
I'm not sure if this is an issue with the stubs or with mypy (and I'm not fully sure how they interact), so apologies if this issue should have been created on https://github.com/python/mypy instead (feel free to transfer it there if that's the case).
The text was updated successfully, but these errors were encountered:
With the following code:
mypy raises the following
type-arg
error :error: Missing type parameters for generic type "LoggerAdapter"
According to this type stub it's typed as a generic and should be passed the type of the logger it's an adapter for. However, changing the code into this:
makes mypy happy but raises an error at runtime:
TypeError: 'type' object is not subscriptable
I'm not sure if this is an issue with the stubs or with mypy (and I'm not fully sure how they interact), so apologies if this issue should have been created on https://github.com/python/mypy instead (feel free to transfer it there if that's the case).
The text was updated successfully, but these errors were encountered: