10000 gh-131507: Clean up tests and type checking for `_pyrepl` by ambv · Pull Request #131509 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-131507: Clean up tests and type checking for _pyrepl #131509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Explain Misc/mypy
  • Loading branch information
ambv committed Mar 20, 2025
commit 99469f3fab90f600889279908d33365de5729bd6
16 changes: 16 additions & 0 deletions Misc/mypy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Mypy path symlinks

This directory stores symlinks to standard library modules and packages
that are fully type-annotated and ready to be used in type checking of
the rest of the stdlib or Tools/ and so on.

Due to most of the standard library being untyped, we prefer not to
point mypy directly at `Lib/` for type checking. Additionally, mypy
as a tool does not support shadowing typing-related standard libraries
like `types`, `typing`, and `collections.abc`.

So instead, we set `mypy_path` to include this directory,
which only links modules and packages we know are safe to be
type-checked themselves and used as dependencies.

See `Lib/_pyrepl/mypy.ini` for an example.
Loading
0