-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
mypy complains that logging.Formater does not have a converter attr #720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Preparing a pull request. |
gvanrossum
pushed a commit
that referenced
this issue
Nov 30, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I have python 2.7 code with a function that creates a logger. I put a type annotation in the comment, where the return type is logging.Logger. I use mypy 0.4.6 on python 3.5.2.
When i run the type checker, i get this error.
However, this is wrong because the log formatter does in fact have a converter attribute.
Code example below.
The text was updated successfully, but these errors were encountered: