Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
NoneMetadataError Class Reference
Inheritance diagram for NoneMetadataError:
Collaboration diagram for NoneMetadataError:

Public Member Functions

None __init__ (self, "BaseDistribution" dist, str metadata_name)
 
str __str__ (self)
 

Data Fields

 dist
 
 metadata_name
 

Detailed Description

Raised when accessing a Distribution's "METADATA" or "PKG-INFO".

This signifies an inconsistency, when the Distribution claims to have
the metadata file (if not, raise ``FileNotFoundError`` instead), but is
not actually able to produce its content. This may be due to permission
errors.

Definition at line 225 of file exceptions.py.

Constructor & Destructor Documentation

◆ __init__()

None __init__ (   self,
"BaseDistribution"  dist,
str  metadata_name 
)
:param dist: A Distribution object.
:param metadata_name: The name of the metadata being accessed
    (can be "METADATA" or "PKG-INFO").

Definition at line 234 of file exceptions.py.

238 ) -> None:
239 """
240 :param dist: A Distribution object.
241 :param metadata_name: The name of the metadata being accessed
242 (can be "METADATA" or "PKG-INFO").
243 """
244 self.dist = dist
245 self.metadata_name = metadata_name
246

Referenced by Protocol.__init_subclass__().

Here is the caller graph for this function:

Member Function Documentation

◆ __str__()

str __str__ (   self)

Definition at line 247 of file exceptions.py.

247 def __str__(self) -> str:
248 # Use `dist` in the error message because its stringification
249 # includes more information, like the version and location.
250 return "None {} metadata found for distribution: {}".format(
251 self.metadata_name,
252 self.dist,
253 )
254
255

References NoneMetadataError.dist, BadMetadata.dist, _InstallRequirementBackedCandidate.dist, AlreadyInstalledCandidate.dist, VersionConflict.dist(), EntryPoint.dist, and NoneMetadataError.metadata_name.

Here is the call graph for this function:

Field Documentation

◆ dist

◆ metadata_name

metadata_name

Definition at line 245 of file exceptions.py.

Referenced by NoneMetadataError.__str__().


The documentation for this class was generated from the following file: