HN user

ocamoss

299 karma
Posts34
Comments17
View on HN
pyrefly.org 2d ago

Define less, check more: Pyrefly now supports attrs

ocamoss
6pts0
pyrefly.org 1mo ago

Making Type Coverage Visible in Dify's CI

ocamoss
1pts0
pyrefly.org 1mo ago

Pyrefly v1.1 is here 27% faster, refactoring tools, tensor shapes

ocamoss
5pts0
www.youtube.com 1mo ago

How to get your agent to use Pyrefly for type checking [video]

ocamoss
4pts0
www.youtube.com 1mo ago

Talk: Python Type Checking in Agentic Workflows [video]

ocamoss
2pts0
pyrefly.org 1mo ago

Tensor Shapes in the Python Type System – Avik Chaudhuri – PyCon Typing Summit

ocamoss
3pts0
pyrefly.org 1mo ago

Type Checking in Agentic Workflows – Conner Nilsen – PyCon US 2026 Typing Summit

ocamoss
3pts0
www.youtube.com 1mo ago

Thoughts on Python Typing – Guido van Rossum – PyCon US 2026 Typing Summit [video]

ocamoss
9pts0
pyrefly.org 1mo ago

Are you expected to run five Python type-checkers now?

ocamoss
168pts208
pyrefly.org 2mo ago

Pyrefly v1.0 is here (fast type checker and language server for Python)

ocamoss
41pts9
pyrefly.org 2mo ago

Right Types, Wrong Code: Surprising Bugs a Python Type Checker Catches

ocamoss
3pts0
pyrefly.org 2mo ago

Adding Pyrefly Type Checking to Your Agentic Loop

ocamoss
2pts0
pyrefly.org 3mo ago

Python Type Checker Comparison: Speed and Memory Usage

ocamoss
2pts0
pyrefly.org 3mo ago

How to Support Notebooks in a Language Server

ocamoss
3pts0
positron.posit.co 3mo ago

We chose Positron's Python type checker

ocamoss
1pts0
pyrefly.org 3mo ago

Reaching 100% Type Coverage by Deleting Unannotated Code

ocamoss
3pts0
pyrefly.org 4mo ago

Designing a Python Language Server: Lessons from Pyre That Shaped Pyrefly

ocamoss
6pts0
discuss.python.org 4mo ago

PyCon 2026 Typing Summit: Thu May 14, 1-5pm

ocamoss
2pts0
pyrefly.org 4mo ago

Comparing Python Type Checkers: Typing Spec Conformance

ocamoss
119pts59
pyrefly.org 4mo ago

Pandas' Public API Is Now Type-Complete

ocamoss
4pts0
pyrefly.org 4mo ago

Python Type Checker Comparison: Empty Container Inference

ocamoss
59pts57
pytorch.org 5mo ago

PyTorch Now Uses Pyrefly for Type Checking

ocamoss
5pts0
pyrefly.org 5mo ago

Making Pyrefly Diagnostics 18x Faster

ocamoss
5pts0
pyrefly.org 5mo ago

Type Narrowing Patterns in Pyrefly That Make Type Checking More Intuitive

ocamoss
6pts0
yangdanny97.github.io 6mo ago

Making a Strava-Style Heatmap with My Citibike Ride History

ocamoss
2pts0
engineering.fb.com 6mo ago

Python Typing Survey 2025: Code Quality and Flexibility Top Reasons for Adoption

ocamoss
1pts0
rescript-lang.org 7mo ago

Reforging the ReScript Build System

ocamoss
3pts0
rescript-lang.org 7mo ago

What can I do with ReScript?

ocamoss
3pts0
pyrefly.org 7mo ago

Fly through data validation with Pyrefly's new Pydantic integration

ocamoss
1pts0
rescript-lang.org 7mo ago

ReScript 12

ocamoss
2pts0

Running more type checkers isn't really about strictness. The main benefit to library maintainers is to make sure that their APIs are compatible with whatever tools their users run.

This wouldn't really be an issue for most other languages, but Python's typing ecosystem is uniquely fragmented, with only partial standardization between several popular tools.

people looking at the low pass rates for mypy and ty and concluding they must not be very useful

Yeah, that would be the wrong takeaway from this blog. The point of the blog was to add context to what the conformance results mean and clarify their limitations, since I saw quite a few people sharing links to the tracker online w/o context.

It's acknowledged at the end of the "infer any" strategy, but perhaps worded poorly.

To improve type safety in these situations, type checkers that infer Any for empty containers can choose to generate extra type errors that warn the user about the insertion of an Any type. While this can reduce false negatives, it burdens developers by forcing them to explicitly annotate every empty container in order to silence the warnings.

ie: "type checkers that don't infer container types can emit an error and require users to annotate"

Requiring the annotations on empty containers is the only way to have type safety if the type checker cannot infer the type of the container, like Pyright.

If the type checker can infer a type then the annotation would only be required if the inferred type doesn't match the user's intent, which means one would need to add fewer annotations to an arbitrary working-but-unannotated program to satisfy the type checker.

[dead] 8 months ago

Pyrefly (a new language server and type checker for Python) now includes built-in support for Pydantic, a popular Python library for data validation and parsing. Previously, the only type checker that supported Pydantic was Mypy, via a plugin.