Skip to content

Instantly share code, notes, and snippets.

@AlexWaygood
Created March 22, 2026 17:59
Show Gist options
  • Select an option

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

Select an option

Save AlexWaygood/244691393db0a14eff1ea308d53f2274 to your computer and use it in GitHub Desktop.

Revisions

  1. AlexWaygood created this gist Mar 22, 2026.
    1 change: 1 addition & 0 deletions _multiplay_metadata.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    {"version": 1, "file_mapping": {"main.py": "main.py", "pyproject.toml": "pyproject.toml"}}
    11 changes: 11 additions & 0 deletions main.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    class Foo[T, V_co]:
    x: T

    def get(self) -> V_co:
    raise NotImplementedError

    def __init__(self: Foo[str, V_co], **kwargs: V_co): ...

    def foo(arg: Foo[object, int]) -> None: ...

    foo(Foo(a=42))
    37 changes: 37 additions & 0 deletions pyproject.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,37 @@
    [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"


    [tool.mypy]
    color_output = true
    pretty = true
    check_untyped_defs = true


    [tool.pyright]
    reportWildcardImportFromLibrary = false
    reportSelfClsParameterName = false
    reportUnusedExpression = false


    [tool.zuban]
    pretty = true
    check_untyped_defs = true


    [tool.pycroscope]
    import_paths = ["."]


    [tool.pyrefly]