|
| 1 | +# Stubs for distutils.version (Python 2 and 3.5) |
| 2 | +# |
| 3 | +# NOTE: This dynamically typed stub was automatically generated by stubgen. |
| 4 | + |
| 5 | +import sys |
| 6 | +from typing import Any |
| 7 | + |
| 8 | +class Version: |
| 9 | + def __init__(self, vstring=None): ... |
| 10 | + |
| 11 | + if sys.version_info >= (3,): |
| 12 | + def __eq__(self, other): ... |
| 13 | + def __lt__(self, other): ... |
| 14 | + def __le__(self, other): ... |
| 15 | + def __gt__(self, other): ... |
| 16 | + def __ge__(self, other): ... |
| 17 | + |
| 18 | +class StrictVersion(Version): |
| 19 | + version_re = ... # type: Any |
| 20 | + version = ... # type: Any |
| 21 | + prerelease = ... # type: Any |
| 22 | + def parse(self, vstring): ... |
| 23 | + |
| 24 | + if sys.version_info < (3,): |
| 25 | + def __cmp__(self, other): ... |
| 26 | + |
| 27 | +class LooseVersion(Version): |
| 28 | + component_re = ... # type: Any |
| 29 | + def __init__(self, vstring=None): ... |
| 30 | + vstring = ... # type: Any |
| 31 | + version = ... # type: Any |
| 32 | + def parse(self, vstring): ... |
| 33 | + |
| 34 | + if sys.version_info < (3,): |
| 35 | + def __cmp__(self, other): ... |
0 commit comments