More Monkeytyping

This commit is contained in:
Martin Mahner 2020-06-20 16:51:01 +02:00
parent cb3ad997ac
commit 0604c41123
2 changed files with 18 additions and 0 deletions

11
Pipfile Normal file
View file

@ -0,0 +1,11 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
[requires]
python_version = "3.6"

7
dpaste/types.py Normal file
View file

@ -0,0 +1,7 @@
from typing import Tuple, Union
# A pypi version ala (1, 1), (1, 1, 0) or (1, 1, 'a1').
VersionType = Union[Tuple[int, int], Tuple[int, int, Union[int, str]]]
# Django choices where they key can either be a string or integer.
DjangoChoicesType = Tuple[Tuple[Union[int, str], str], ...]