We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c25c95 commit 99469f3Copy full SHA for 99469f3
Misc/mypy/README.md
@@ -0,0 +1,16 @@
1
+# Mypy path symlinks
2
+
3
+This directory stores symlinks to standard library modules and packages
4
+that are fully type-annotated and ready to be used in type checking of
5
+the rest of the stdlib or Tools/ and so on.
6
7
+Due to most of the standard library being untyped, we prefer not to
8
+point mypy directly at `Lib/` for type checking. Additionally, mypy
9
+as a tool does not support shadowing typing-related standard libraries
10
+like `types`, `typing`, and `collections.abc`.
11
12
+So instead, we set `mypy_path` to include this directory,
13
+which only links modules and packages we know are safe to be
14
+type-checked themselves and used as dependencies.
15
16
+See `Lib/_pyrepl/mypy.ini` for an example.
0 commit comments