mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Temporarily restore python 3.6.0 support
This commit is contained in:
parent
1c641b1c28
commit
081f3028ee
5 changed files with 79 additions and 55 deletions
|
|
@ -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], ...]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue