mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-12-24 23:45:16 +11:00
More Monkeytyping
This commit is contained in:
parent
cb3ad997ac
commit
0604c41123
2 changed files with 18 additions and 0 deletions
11
Pipfile
Normal file
11
Pipfile
Normal 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
7
dpaste/types.py
Normal 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], ...]
|
Loading…
Reference in a new issue