@@ -170,7 +170,7 @@ class EntryPoint:
170170 value : str
171171 group : str
172172
173- dist : Optional [' Distribution' ] = None
173+ dist : Optional [Distribution ] = None
174174
175175 def __init__ (self , name : str , value : str , group : str ) -> None :
176176 vars (self ).update (name = name , value = value , group = group )
@@ -311,9 +311,9 @@ def _from_text(text):
311311class PackagePath (pathlib .PurePosixPath ):
312312 """A reference to a path in a package"""
313313
314- hash : Optional [" FileHash" ]
314+ hash : Optional [FileHash ]
315315 size : int
316- dist : " Distribution"
316+ dist : Distribution
317317
318318 def read_text (self , encoding : str = 'utf-8' ) -> str : # type: ignore[override]
319319 return self .locate ().read_text (encoding = encoding )
@@ -395,7 +395,7 @@ def locate_file(self, path: str | os.PathLike[str]) -> SimplePath:
395395 """
396396
397397 @classmethod
398- def from_name (cls , name : str ) -> " Distribution" :
398+ def from_name (cls , name : str ) -> Distribution :
399399 """Return the Distribution for the given package name.
400400
401401 :param name: The name of the distribution package to search for.
@@ -414,8 +414,8 @@ def from_name(cls, name: str) -> "Distribution":
414414
415415 @classmethod
416416 def discover (
417- cls , * , context : Optional [' DistributionFinder.Context' ] = None , ** kwargs
418- ) -> Iterable [" Distribution" ]:
417+ cls , * , context : Optional [DistributionFinder .Context ] = None , ** kwargs
418+ ) -> Iterable [Distribution ]:
419419 """Return an iterable of Distribution objects for all packages.
420420
421421 Pass a ``context`` or pass keyword arguments for constructing
@@ -433,7 +433,7 @@ def discover(
433433 )
434434
435435 @staticmethod
436- def at (path : str | os .PathLike [str ]) -> " Distribution" :
436+ def at (path : str | os .PathLike [str ]) -> Distribution :
437437 """Return a Distribution for the indicated metadata path.
438438
439439 :param path: a string or path-like object
@@ -809,7 +809,7 @@ class MetadataPathFinder(NullFinder, DistributionFinder):
809809
810810 def find_distributions (
811811 self , context = DistributionFinder .Context ()
812- ) -> Iterable [" PathDistribution" ]:
812+ ) -> Iterable [PathDistribution ]:
813813 """
814814 Find distributions.
815815
0 commit comments