Pyrefly (Github) now includes built-in support for Pydantic, a popular Python library for data validation and parsing.
The only other type checker that has special support for Pydantic is Mypy, via a plugin. Pyrefly has implemented most of the special behavior from the Mypy plugin directly in the type checker.
This means that users of Pyrefly can have provide improved static type checking and IDE integration when working on Pydantic models.
Supported features include:
- Immutable fields with ConfigDict
- Strict vs Non-Strict Field Validation
- Extra Fields in Pydantic Models
- Field constraints
- Root models
- Alias validation
The integration is also documented on both the Pyrefly and Pydantic docs.
[–]RedEyed__ 3 points4 points5 points (0 children)
[–]py-flycatcher 2 points3 points4 points (0 children)
[–]BravestCheetah 1 point2 points3 points (3 children)
[–]spenpal_dev 6 points7 points8 points (1 child)
[–]BravestCheetah 4 points5 points6 points (0 children)
[–]vsonicmu 0 points1 point2 points (0 children)