Skip to content

Sample code for: Pyrefly: A Fast Static Type Checker for Python Projects - #889

Merged
realpython-bot merged 2 commits into
masterfrom
pyrefly-python
Oct 20, 2026
Merged

realpython-bot merged 2 commits into
masterfrom
pyrefly-python

Conversation

@lpozo

@lpozo lpozo commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Where to put new files:

  • New files should go into a top-level subfolder, named after the article slug. For example: my-awesome-article

How to merge your changes:

  1. Make sure the CI code style tests all pass (+ run the automatic code formatter if necessary).
  2. Find an RP Team member on Slack and ask them to review & approve your PR.
  3. Once the PR has one positive ("approved") review, GitHub lets you merge the PR.
  4. 🎉

Code examples for the Pyrefly: A Fast Static Type Checker for Python Projects tutorial. Files live in the pyrefly-python/ top-level folder, named after the article slug.

Generated from the tutorial markdown with the post-materials skill, then verified locally before pushing. Every file runs (except incorrect_types.py, which raises TypeError by design), and its pyrefly check results (Pyrefly 1.2.0, pinned in requirements.txt) match the tutorial.

🤖 Generated with Claude Code

@realpython-bot realpython-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Final QA: verified all files run (incorrect_types.py raises TypeError by design), pyrefly 1.2.0 check/infer/coverage results match the tutorial, ruff format/check pass, README title and link correct.

@realpython-bot
realpython-bot merged commit a580001 into master Oct 20, 2026
1 check passed
@realpython-bot
realpython-bot deleted the pyrefly-python branch October 20, 2026 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants