mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Add missing classes to distutils.version (#450)
This commit is contained in:
committed by
Guido van Rossum
parent
6c1a185e49
commit
5de7bfe185
@@ -0,0 +1,35 @@
|
||||
# Stubs for distutils.version (Python 2 and 3.5)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
class Version:
|
||||
def __init__(self, vstring=None): ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
def __eq__(self, other): ...
|
||||
def __lt__(self, other): ...
|
||||
def __le__(self, other): ...
|
||||
def __gt__(self, other): ...
|
||||
def __ge__(self, other): ...
|
||||
|
||||
class StrictVersion(Version):
|
||||
version_re = ... # type: Any
|
||||
version = ... # type: Any
|
||||
prerelease = ... # type: Any
|
||||
def parse(self, vstring): ...
|
||||
|
||||
if sys.version_info < (3,):
|
||||
def __cmp__(self, other): ...
|
||||
|
||||
class LooseVersion(Version):
|
||||
component_re = ... # type: Any
|
||||
def __init__(self, vstring=None): ...
|
||||
vstring = ... # type: Any
|
||||
version = ... # type: Any
|
||||
def parse(self, vstring): ...
|
||||
|
||||
if sys.version_info < (3,):
|
||||
def __cmp__(self, other): ...
|
||||
|
||||
Reference in New Issue
Block a user