pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

Support types like `pydantic.types.PositiveInt`

Open yangdanny97 opened this issue 4 months ago • 1 comments

Describe the Bug

https://docs.pydantic.dev/2.3/api/types/#pydantic.types.PositiveInt

There's no dependent types in Python, so I'm not sure how to avoid promoting it to int whenever we try to do something w/ it

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

yangdanny97 avatar Nov 02 '25 14:11 yangdanny97

Reopening since this isn't fully supported yet; the PR added support for checking gt, lt, etc. constraints against a field's default

rchen152 avatar Nov 25 '25 02:11 rchen152