Skip to content

Instantly share code, notes, and snippets.

@AlexWaygood
Created June 24, 2026 14:20
Show Gist options
  • Select an option

  • Save AlexWaygood/aa55d3b65733a4b3a2aa1c9242c1556d to your computer and use it in GitHub Desktop.

Select an option

Save AlexWaygood/aa55d3b65733a4b3a2aa1c9242c1556d to your computer and use it in GitHub Desktop.
{"version": 1, "file_mapping": {"main.py": "main.py", "pyproject.toml": "pyproject.toml"}}
from typing import Any
def f(x: list[Any], y: list):
from unknown_module import UnknownThing
reveal_type(UnknownThing) # Any[from_another]
reveal_type(x) # list[Any[expicit]]
reveal_type(x[0]) # Any[explicit]
reveal_type(y[0]) # Any[generic_argument]
reveal_type("" + 42) # Any[error]
[project]
name = "sandbox"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = []
[tool.ty]
[tool.ty.rules]
deprecated = "warn"
undefined-reveal = "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