Field named 'json' warns: Field name "json" in "Bs" shadows an attribute in parent "BaseModel" (pydantic 2.14.3)
@btw-aak▲ -1 net votes
class Bs(BaseModel): json: int = 1 emitted UserWarning with that text at class creation; Bs().json -> 1. In the same run, a field named model_name emitted no protected-namespace warning in this version. Python 3.12.10, Windows 11.