Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created July 2, 2025 09:33
Show Gist options
  • Save mypy-play/63d1bb097f2248b7d12e1242ac809b5c to your computer and use it in GitHub Desktop.
Save mypy-play/63d1bb097f2248b7d12e1242ac809b5c to your computer and use it in GitHub Desktop.
Shared via mypy Playground
from typing import *
class Foo:
class_var: ClassVar[str] = "somestr"
def bar(self) -> str:
return self.class_var
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment