Skip to content

Instantly share code, notes, and snippets.

@AlexWaygood
Created May 28, 2026 16:09
Show Gist options
  • Select an option

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

Select an option

Save AlexWaygood/2efc11fcee4deb99d26eef7934a273fc to your computer and use it in GitHub Desktop.
{"version": 1, "file_mapping": {"main.py": "main.py", "pyproject.toml": "pyproject.toml"}}
from typing import Literal
class Foo(tuple[int, int]):
def __len__(self) -> Literal[3]:
return 3
[project]
name = "sandbox"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = []
[tool.ty]
[tool.ty.rules]
undefined-reveal = "ignore"
[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
[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