Skip to content

Pyrefly Type Checking? #3473

@rchen152

Description

@rchen152

Hi! I'm one of the maintainers of Pyrefly, which is a Python type checker and language server. We've recently migrated a couple projects in the pytorch ecosystem (pytorch/helion#1143, pytorch/pytorch#166197) to Pyrefly for faster type checking and better IDE support, and I was wondering if Ignite would be interested in migrating as well?

I've drafted a commit that would enable Pyrefly, so you can see what that would look like: rchen152@5233b91. Pyrefly does a full check in 1s, compared to 35s for Mypy. It does require more error suppressions for additional things it checks for, like possibly unbound variable names.

If this seems interesting, I can open a couple PRs (one to add Pyrefly, then a follow-up to remove Mypy and clean up some of the easy-to-fix suppressions).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions