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

Public Member Functions

 dist (self)
 
 req (self)
 
 report (self)
 
 with_context (self, required_by)
 
- Public Member Functions inherited from ResolutionError
 __repr__ (self)
 

Static Protected Attributes

str _template = "{self.dist} is installed but {self.req} is required"
 

Additional Inherited Members

- Data Fields inherited from ResolutionError
 args
 

Detailed Description

An already-installed version conflicts with the requested version.

Should be initialized with the installed Distribution and the requested
Requirement.

Definition at line 299 of file __init__.py.

Member Function Documentation

◆ dist()

◆ report()

report (   self)

Definition at line 317 of file __init__.py.

317 def report(self):
318 return self._template.format(**locals())
319

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

Referenced by DistributionNotFound.__str__().

Here is the caller graph for this function:

◆ req()

◆ with_context()

with_context (   self,
  required_by 
)
If required_by is non-empty, return a version of self that is a
ContextualVersionConflict.

Definition at line 320 of file __init__.py.

320 def with_context(self, required_by):
321 """
322 If required_by is non-empty, return a version of self that is a
323 ContextualVersionConflict.
324 """
325 if not required_by:
326 return self
327 args = self.args + (required_by,)
328 return ContextualVersionConflict(*args)
329
330

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

Here is the call graph for this function:

Field Documentation

◆ _template

str _template = "{self.dist} is installed but {self.req} is required"
staticprotected

Definition at line 307 of file __init__.py.

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


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