Checker for unspecified-encoding
is unable to infer attributes from dataclasses
#5321
Labels
dataclasses
False Negative 🦋
No message is emitted but something is wrong with the code
Help wanted 🙏
Outside help would be appreciated, good for new contributors
Needs astroid Brain 🧠
Needs a brain tip in astroid (then an astroid upgrade)
Needs astroid update
Needs an astroid update (probably a release too) before being mergable
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
A small part of this issue has been fixed in #5332, but the following tests should still be added to
tests/functional/u/unspecified_encoding_py38.py
.Configuration
No response
Command used
Pylint output
No response
Expected behavior
It has something to do with the inference of dataclasses but I couldn't figure it out easily. I only know that
astroid
handles this in a special way but I have no knowledge of that part of the codebase.Any help would be appreciated!
Found while working on #5173
Pylint version
Latest commit on `main`
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: