Open Hubrrr88 opened 1 year ago
Thanks @Hubrrr88 I can reproduce that. Looks like this is_class_attr function only checks the given class & not its parents also.
Edited the title to remove the reference to type-hints as they don't seem to affect the situation.
Bug description
Following code produces a false positive: The function
copy()
in the derived "Child" class even has a casting method used, to give type hints.Configuration
No response
Command used
Pylint output
Expected behavior
No error should be produced as the code runs perfectly fine.
Pylint version
OS / Environment
macOS Ventura 13.1
Additional dependencies
No response