Overview
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
Proposal
It would be cool if FURB120 applied to Pydantic BaseModel fields
Overview
With Refurb v2 and Pydantic v2,
FURB120does not apply to Pydantic fields:Proposal
It would be cool if
FURB120applied to PydanticBaseModelfields