Temporarily restore python 3.6.0 support

This commit is contained in:
Anthony Sottile 2020-02-24 09:02:19 -08:00
parent 1c641b1c28
commit 081f3028ee
5 changed files with 79 additions and 55 deletions

View file

@ -19,7 +19,11 @@ UNSET = _Unset.UNSET
class Var(NamedTuple):
name: str
default: str = ''
default: str
# python3.6.0: `typing.NamedTuple` did not support defaults
Var.__new__.__defaults__ = ('',)
SubstitutionT = Tuple[Union[str, Var], ...]