Skip to content

Instantly share code, notes, and snippets.

View TheDan64's full-sized avatar
🦀
Rustacean

Dan Kolsoi TheDan64

🦀
Rustacean
View GitHub Profile
@TheDan64
TheDan64 / my_classes_example.py
Last active October 29, 2016 00:19
Would like to get this to work with MyPy
from typing import Generic, TypeVar
L = TypeVar('L')
R = TypeVar('R')
class Either(Generic[L, R]):
pass
class Left:
def __init__(self, value):

Keybase proof

I hereby claim:

  • I am thedan64 on github.
  • I am dkolsoi (https://keybase.io/dkolsoi) on keybase.
  • I have a public key ASDILOI3V8u2bUXq0ZJLiKQv9JAyXndnFQyVQXjS4zhE1wo

To claim this, I am signing this object: