Created
October 9, 2026 02:32
-
-
Save carljm/8d3420dd882e6ef8e4ffbf2e4fd4f364 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"}} |
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
| def identity[T](value: T) -> T: | |
| return value | |
| # Collect: Literal[42] ≤ T. | |
| # Solve T = Literal[42], then substitute into the return. | |
| reveal_type(identity(42)) # Literal[42] |
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] | |
| deprecated = "warn" | |
| undefined-reveal = "ignore" | |
| experimental-syntax = "ignore" | |
| [tool.pyright] | |
| reportDeprecated = "warning" | |
| reportWildcardImportFromLibrary = false | |
| reportSelfClsParameterName = false | |
| reportUnusedExpression = false | |
| [tool.pyrefly] | |
| [tool.pyrefly.errors] | |
| deprecated = "error" | |
| unimported-directive = false | |
| [tool.mypy] | |
| color_output = true | |
| pretty = true | |
| check_untyped_defs = true | |
| enable_error_code = ["deprecated"] | |
| [tool.zuban] | |
| pretty = true | |
| check_untyped_defs = true | |
| enable_error_code = ["deprecated"] | |
| [tool.pycroscope] | |
| import_paths = ["."] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment