PEP 827: Type Manipulation

Hi all, we presented and discussed PEP 827 at the Typing Meetup on July 22nd. The recording and slides are available in the meetup thread.

In the talk we discussed how Pyrefly supports third-party libraries like Pydantic, Django, and attrs, specifically the tradeoffs between plugins vs. direct support and special-casing. From there, we explored how features from PEP 827 could help standardize support for these libraries in a cross-type-checker way, reducing the need for per-checker special-casing.

We’d love to hear more thoughts, questions, or concerns. happy to continue the discussion here!

3 Likes