Skip to content

Commit 5de7bfe

Browse files
eurestigvanrossum
authored andcommitted
Add missing classes to distutils.version (#450)
1 parent 6c1a185 commit 5de7bfe

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

stdlib/2and3/distutils/version.pyi

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

Comments
 (0)