Describe the Bug
Hi this is a bit of an edge case, but Pydantic Models using alias_generator are not interpreted correctly.
from pydantic import BaseModel, ConfigDict
from pydantic.alias_generators import to_camel
class Model(BaseModel):
model_config = ConfigDict(frozen=True, alias_generator=to_camel)
some_property: str
model1 = Model(some_property="foo")
model = Model(someProperty="foo") # Pyrefly error, no runtime error
Error:

Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response
Describe the Bug
Hi this is a bit of an edge case, but Pydantic Models using
alias_generatorare not interpreted correctly.Error:

Sandbox Link
No response
(Only applicable for extension issues) IDE Information
No response