-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
"FileHandler" has no attribute "set_name" #5257
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
Looks like there are several improvements to be made to
|
Hiya! Thanks for taking action on this, but I'm a bit confused as to why this is a
$ pylint example.py --disable=missing-module-docstring
--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00) |
Stubs also define existence. mypy doesn't look at actual code at all when there are stubs (nor would that be possible for C extensions). |
Ah, you have cleared my confusion! I might have a stab at this myself if I have free time over the next week.
$ echo "h.nonexistant()" >> example.py
$ pylint example --disable=missing-module-docstring
************* Module example
example:5:0: E1101: Instance of 'FileHandler' has no 'nonexistant' member (no-member)
---------------------------------------------------------------------
Your code has been rated at -2.50/10 (previous run: 10.00/10, -12.50) |
Let's see what do we have here. Looks interesting! |
fixed in #5388 |
Bug Report
I have looked in the
logging
standard library and to me it seems thatFileHandler
has a standard mro, inheritingset_name
fromHandler
, yetmypy
complains:To Reproduce
Expected Behavior
No error
Your Environment
No configuration files, flags, etc.
The text was updated successfully, but these errors were encountered: