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

Public Member Functions

 req (self)
 
 requirers (self)
 
 requirers_str (self)
 
 report (self)
 
 __str__ (self)
 
- Public Member Functions inherited from ResolutionError
 __repr__ (self)
 

Data Fields

 requirers
 
- Data Fields inherited from ResolutionError
 args
 

Static Protected Attributes

tuple _template
 

Detailed Description

A requested distribution was not found

Definition at line 344 of file __init__.py.

Member Function Documentation

◆ __str__()

__str__ (   self)

Definition at line 369 of file __init__.py.

369 def __str__(self):
370 return self.report()
371
372

References MunitTestRunner.report, VersionConflict.report(), and DistributionNotFound.report().

Here is the call graph for this function:

◆ report()

report (   self)

Definition at line 366 of file __init__.py.

366 def report(self):
367 return self._template.format(**locals())
368

References VersionConflict._template, ContextualVersionConflict._template, and DistributionNotFound._template.

Referenced by DistributionNotFound.__str__().

Here is the caller graph for this function:

◆ req()

◆ requirers()

requirers (   self)

Definition at line 357 of file __init__.py.

357 def requirers(self):
358 return self.args[1]
359

References ResolutionError.args, EditablePartial.args, ParseBaseException.args, JSONDecodeError.args, RetryCallState.args, and ParamSpec.args().

Referenced by DistributionNotFound.requirers_str().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ requirers_str()

requirers_str (   self)

Definition at line 361 of file __init__.py.

361 def requirers_str(self):
362 if not self.requirers:
363 return 'the application'
364 return ', '.join(self.requirers)
365

References DistributionNotFound.requirers(), and DistributionNotFound.requirers.

Here is the call graph for this function:

Field Documentation

◆ _template

tuple _template
staticprotected
Initial value:
= (
"The '{self.req}' distribution was not found "
"and is required by {self.requirers_str}"
)

Definition at line 347 of file __init__.py.

Referenced by VersionConflict.report(), and DistributionNotFound.report().

◆ requirers

requirers

Definition at line 364 of file __init__.py.

Referenced by DistributionNotFound.requirers_str().


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