mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Mypy now supports sys.platform and sys.version_info checks (#410)
This commit is contained in:
6
third_party/3/pkg_resources.pyi
vendored
6
third_party/3/pkg_resources.pyi
vendored
@@ -6,6 +6,7 @@ from typing import (
|
||||
TypeVar, overload,
|
||||
)
|
||||
import importlib.abc
|
||||
import sys
|
||||
import types
|
||||
import zipimport
|
||||
|
||||
@@ -244,7 +245,10 @@ class ExtractionError(Exception):
|
||||
original_error = ... # type: Exception
|
||||
|
||||
|
||||
class _Importer(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): ...
|
||||
if sys.version_info >= (3, 3):
|
||||
class _Importer(importlib.abc.MetaPathFinder, importlib.abc.InspectLoader): ...
|
||||
else:
|
||||
class _Importer(importlib.abc.InspectLoader): ...
|
||||
|
||||
def register_finder(importer_type: type,
|
||||
distribution_finder: _DistFinderType) -> None : ...
|
||||
|
||||
Reference in New Issue
Block a user