Pyrefly (@pyrefly_dev) profile picture

Just a fast type checker and language server for Python, written in Rust.

Joined August 2026
Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)Photo by Pyrefly (@pyrefly_dev)
Did you know Pyrefly can add type annotations for you? 🪄 `pyrefly infer src/` Pyrefly infers the types and writes the annotations into your files. Read the diff, commit, done. Untyped legacy code just got a lot less scary. Follow for more 🐍
1
27
Did you know Pyrefly can measure your type coverage? 📊 `pyrefly coverage report` You get a machine-readable report that shows which parts of your code are typed and which are not. Find the gaps before they find you. Follow for more 🐍
28
Did you know Pyrefly can build a SCIP index of your Python code? 🔥 SCIP is an open code index format: it maps every definition and reference, so tools like Sourcegraph get exact go-to-def and find-refs. Follow for more 🐍
1
1
4
80
Pyrefly is now one of only two Python type checkers at 100% typing spec conformance. 🎉 mypy, pyright, and ty aren't there yet. How we got there, and what 100% really means 👇 pyrefly.org/blog/typing-conf…
1
3
194
The @pyrefly_dev team added support for the parameter documentation format used by @FastAPI, Typer and my other tools ✨ So, on hover, you get the right documentation for each parameter (e.g. telemetry, or title) 🎉 So, support for annotated-doc github.com/fastapi/annotated…
7
65
4,317
Pyrefly 1.5 is out! 🎉 ✅ 100% typing spec conformance ⚡ 40% faster checks, 9% less memory 💡 New "hint" severity for unused code 🧠 Smarter narrowing, better Pydantic & Django, Tensor Types `pip install -U pyrefly` to upgrade github.com/pyrefly-org/pyref…
2
3
140
Pyrefly retweeted
Our #PyTorchConf talk on a type system for tensor shapes is now out! youtube.com/watch?v=K5WLGsHw… Traditional type systems are useless for tensor programs because all they tell you is something is a tensor. This is like telling you, here's a bunch of blurry lego bricks but I won't tell you what their shapes are! With tensor shapes in a type system, you get to build with bricks that must fit together, and whenever they don't fit, there's an automatic error. It's also great for program understanding, because you can see the shapes of intermediate tensors show up in your IDE. There's a pretty cool live demo inside that covers PyTorch, JAX, and NumPy support (model authoring). We also talk about bringing this to CuTe DSL and Triton in the future (kernel authoring). Tons of questions towards the end! Join this revolution, our goal is to make this so common in all kinds of tensor programming that you wouldn't believe this wasn't possible until now. :)
5
10
881
Very interesting use of TSP and Pyrefly as a platform for types!
Latest experiment: pyscriptc A Python-to-native toolkit → Written in Python → Static by default → Type checked by @pyrefly_dev → Falls back to CPython island for non-compatible code -> Apache 2.0 Goal: compile existing Python with no code changes pyscriptc.pages.dev/
1
63
Pyrefly retweeted
Latest experiment: pyscriptc A Python-to-native toolkit → Written in Python → Static by default → Type checked by @pyrefly_dev → Falls back to CPython island for non-compatible code -> Apache 2.0 Goal: compile existing Python with no code changes pyscriptc.pages.dev/
2
1
1
1
119
Zed v1.26 got released! > This release adds optional Pyrefly Python LS, expandable debugger variable trees, and DWARF debugging for WebAssembly in JS.
1
2
1
25
856
Pyrefly Pylance 🤝 letting users pick the VS Code experience that works best for them
Big news for Python devs in VS Code: Pylance now lets you pick your type checker. 🐍 Meet the Type Server Protocol (TSP), built with Meta so Pyrefly plugs straight into Pylance. Keep Copilot + IntelliSense, swap the engine. Check it out 👇
devblogs.microsoft.com/pytho…
2
4
114
Pyrefly support for tensor shape checking is here! Using simple type annotations, Pyrefly can catch tricky bugs in your models. Validated on dozens of real-world models including nanoGPT. Works with PyTorch, JAX, NumPy and more! youtu.be/2dABb24Q-v0?is=UG3n…
1
2
3
179
If you've ever struggled with shape bugs in PyTorch, NumPy or JAX you can use Pyrefly shape checking to catch mismatches statically, before you ever run your code: youtube.com/watch?v=2dABb24Q… #pyrefly #python #pytorch #numpy
1
4
1,430
🐍 Come find our Meta booth at @PyConTW! 👋 Our team is here to talk about: 🔥 Pyrefly, 🧵 Free-threaded Python, 🛟 Safer Lazy Imports, and More! #pycontw #pycontw2026 #Python #OpenSource #Pyrefly #FreeThreading
2
81
The Pyrefly team wants to hear from you! If you'd like to help make Pyrefly better and have a spare 10 mins to fill out this survey we would greatly appreciate it - whether you’re just getting started trying out Pyrefly or you’ve been here since the beginning: 📝 forms.gle/1ytEGVpsqokm7npR8
39
🐍 Python 3.15 is here! One feature worth trying is explicit lazy imports. They let you defer loading a module until your code actually uses it. For applications with costly imports, that can mean a much faster startup thanks to the use of built-in Python syntax. Lazy imports arrived in PyCharm 2026.2 and will be enhanced further in 2026.3. Try them in the 2026.3 EAP now. Curious how they work? Cheuk walks you through the feature and benchmarks it in our blog post: blog.jetbrains.com/pycharm/2…
2
16
107
4,015
The best open source tool for the job doesn't have to be built in-house. When evaluating Python type checkers, Google chose @MetaOpenSource's Pyrefly and started contributing upstream. 👇 Link in first reply
1
3
1
15
2,868