From 5de7bfe18552705a08d3f171971bca5614863af3 Mon Sep 17 00:00:00 2001 From: David Euresti Date: Fri, 5 Aug 2016 14:50:14 -0700 Subject: [PATCH] Add missing classes to distutils.version (#450) --- stdlib/2and3/distutils/version.pyi | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/stdlib/2and3/distutils/version.pyi b/stdlib/2and3/distutils/version.pyi index e69de29bb..6b6efbf03 100644 --- a/stdlib/2and3/distutils/version.pyi +++ b/stdlib/2and3/distutils/version.pyi @@ -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): ...