Created
April 10, 2026 18:23
-
-
Save carljm/e8a25e05120c2a275f26096e7a3c01d7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version": 1, "file_mapping": {"main.py": "main.py", "pyproject.toml": "pyproject.toml", "lib.py": "lib.py"}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| x = 1 | |
| def f(): | |
| reveal_type(x) | |
| def g(): | |
| global x | |
| x = 2 | |
| x = "foo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from lib import x | |
| import lib | |
| reveal_type(x) | |
| reveal_type(lib.x) | |
| lib.x = 2 | |
| lib.x = "foo" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [project] | |
| name = "sandbox" | |
| version = "0.1.0" | |
| requires-python = ">=3.10" | |
| dependencies = [] | |
| [tool.ty] | |
| [tool.ty.terminal] | |
| output-format = "concise" | |
| [tool.ty.rules] | |
| undefined-reveal = "ignore" | |
| empty-body = "ignore" | |
| [tool.mypy] | |
| color_output = true | |
| pretty = true | |
| check_untyped_defs = true | |
| allow_empty_bodies = true | |
| [tool.pyright] | |
| reportWildcardImportFromLibrary = false | |
| reportSelfClsParameterName = false | |
| reportUnusedExpression = false | |
| [tool.zuban] | |
| pretty = true | |
| check_untyped_defs = true | |
| [tool.pycroscope] | |
| import_paths = ["."] | |
| [tool.pyrefly] | |
| errors = {"unimported-directive" = "ignore" } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment