We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
FURB120
BaseModel
With Refurb v2 and Pydantic v2, FURB120 does not apply to Pydantic fields:
from pydantic import BaseModel def foo(arg: int = 1) -> None: pass class Bar(BaseModel): arg: int = 1 foo(arg=1) # Refurb throws FURB120 Bar(arg=1) # Refurb does not throw FURB120
It would be cool if FURB120 applied to Pydantic BaseModel fields
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Overview
With Refurb v2 and Pydantic v2,
FURB120
does not apply to Pydantic fields:Proposal
It would be cool if
FURB120
applied to PydanticBaseModel
fieldsThe text was updated successfully, but these errors were encountered: