Skip to content

Instantly share code, notes, and snippets.

@AlexWaygood
Created August 28, 2026 15:06
Show Gist options
  • Select an option

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

Select an option

Save AlexWaygood/6115ad019b01ba0da7d4cb2d43b49c11 to your computer and use it in GitHub Desktop.
{"version": 1, "file_mapping": {"pyproject.toml": "pyproject.toml", "foo.py": "foo.py"}}
def _():
a: list[int]
b: list[str]
a = b = []
reveal_type(a) # list[int]
reveal_type(b) # list[str]
a.append(42)
b[0] + "foo" # no error
[project]
name = "sandbox"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = []
[tool.ty]
[tool.ty.rules]
undefined-reveal = "ignore"
unsupported-dynamic-base = "error"
[tool.pyright]
reportWildcardImportFromLibrary = false
reportSelfClsParameterName = false
reportUnusedExpression = false
[tool.pyrefly]
[tool.pyrefly.errors]
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
[tool.pycroscope]
import_paths = ["."]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment