mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 08:47:39 +08:00
Reference a class in importlib.metadata by its fully qualified name. (#4908)
See https://github.com/google/pytype/issues/779. In Python 3.8, pytype fails to parse this file because it can't find Context. This wasn't caught by pytype_test because the test runs in Python 3.6.
This commit is contained in:
@@ -65,7 +65,7 @@ if sys.version_info >= (3, 8):
|
||||
@property
|
||||
def pattern(self) -> str: ...
|
||||
@abc.abstractmethod
|
||||
def find_distributions(self, context: Context = ...) -> Iterable[Distribution]: ...
|
||||
def find_distributions(self, context: DistributionFinder.Context = ...) -> Iterable[Distribution]: ...
|
||||
class MetadataPathFinder(DistributionFinder):
|
||||
@classmethod
|
||||
def find_distributions(cls, context: DistributionFinder.Context = ...) -> Iterable[PathDistribution]: ...
|
||||
|
||||
Reference in New Issue
Block a user