Created
October 31, 2018 12:59
-
-
Save east825/e90b9e625708735909d7489f106c8a49 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import defaultdict, OrderedDict | |
from typing import Dict, overload, TypeVar | |
T = TypeVar('T') | |
@overload | |
def func(foo: T, bar) -> Dict[T, int]: | |
return defaultdict(int) | |
@overload | |
def func(baz=42): | |
return OrderedDict() | |
def func(**kwargs): | |
return kwargs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment