False positive for E1133(not-an-iterable) with pydantic model_fields
class method
#10144
Labels
False Positive 🦟
A message is emitted but nothing is wrong with the code
Lib specific 💅
This affect the code from a particular library
Needs PR
This issue is accepted, sufficiently specified and now needs an implementation
Bug description
When iterating over the pydantic
BaseModel.model_fields
class var pylint errors withE1133(not-an-iterable)
.Example code:
Here is where
model_fields
is defined in pydantic: https://github.com/pydantic/pydantic/blob/main/pydantic/main.py#L244Configuration
I'm using the default configuration
Command used
Pylint output
Expected behavior
I am expecting this to not report an error
Pylint version
OS / Environment
MacOS
iterm
However this also happens in GitHub actions
Additional dependencies
The text was updated successfully, but these errors were encountered: