Skip to main content

13 posts tagged with "news"

View All Tags

Pyrefly + Pylance Integration in VS Code

· 4 min read

If you use Pylance in VS Code for its completions, navigation, or GitHub Copilot integration, you can now use Pyrefly as its type checking backend. We have been working with the Microsoft Python team to make this possible. The result is a new diagnostics source option in Pylance that uses Pyrefly instead of Pyright to power the type analysis backend, keeping the Pylance experience intact.

Pyrefly v1.4: Fewer false positives

· 5 min read

Pyrefly v1.4

Pyrefly v1.4 is out. Highlights:

  • Fewer false positives, from fixes to import resolution, gradual types, and overloads.
  • Tensor shapes for libraries: a new compatibility syntax, and JAX shape stubs on PyPI.
  • The VS Code extension uses the Pyrefly in your environment, so your editor and CLI run the same version.
  • uv workspace members are now type checked.
  • Layered configuration and BasedPyright migration.

Building an Open Source Community in the Age of AI

· 4 min read

A question that has been on our minds lately is how to build a community around Pyrefly when AI is rapidly reshaping longstanding open source norms. I don't think anyone has fully figured this out yet, including us, but we're making some changes to Pyrefly's contributing guidelines that we think are a good start. Here's what we've seen change in open source and what we're doing about it.

Pyrefly v1.3: More configurability and composable tensor shapes

· 4 min read

Pyrefly v1.3

We've just released Pyrefly v1.3, which adds flexible tools for configuring, suppressing, and baselining errors. Also included: a composable tensor shape DSL that expands experimental tensor shape support for JAX and NumPy, improved DataFrame schema checking for Polars, and a battery of new type checking diagnostics.

Pyrefly v1.1 is here!

· 7 min read

Pyrefly v1.1

Pyrefly v1.1 is now available 🎉 This is our first minor release since reaching stable v1.0 in May, and it brings improvements across the board: better performance, smarter type checking, and new IDE refactoring tools.

Pyrefly v1.0 is here!

· 10 min read

Pyrefly v1.0

Today we are pleased to share that Pyrefly, our open source type checker and language server for Python, has reached stable version 1 status, meaning we are confident that Pyrefly is ready for production use.

pandas' Public API Is Now Type-Complete!

· 5 min read

At time of writing, pandas is one of the most widely used Python libraries. It is downloaded about half-a-billion times per month from PyPI, is supported by nearly all Python data science packages, and is generally required learning in data science curriculums. Despite modern alternatives existing, pandas' impact cannot be minimised or understated.

In order to improve the developer experience for pandas' users across the ecosystem, we at Quansight Labs (with support from the Pyrefly team at Meta) decided to focus on improving pandas' typing. Why? Because better type hints mean:

  • More accurate and useful auto-completions from VSCode / PyCharm / NeoVIM / Positron / other IDEs.
  • More robust pipelines, as some categories of bugs can be caught without even needing to execute your code.

By supporting the pandas community, pandas' public API is now type-complete (as measured by Pyright), up from 47% when we started the effort last year. We'll tell the story of how it happened - but first, we need to talk more about type completeness, and how we measure it.