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

Public Member Functions

Group __rich__ (self)
 

Static Public Attributes

str old
 
str new
 

Detailed Description

Definition at line 122 of file self_outdated_check.py.

Member Function Documentation

◆ __rich__()

Group __rich__ (   self)

Definition at line 126 of file self_outdated_check.py.

126 def __rich__(self) -> Group:
127 if WINDOWS:
128 pip_cmd = f"{get_best_invocation_for_this_python()} -m pip"
129 else:
130 pip_cmd = get_best_invocation_for_this_pip()
131
132 notice = "[bold][[reset][blue]notice[reset][bold]][reset]"
133 return Group(
134 Text(),
136 f"{notice} A new release of pip is available: "
137 f"[red]{self.old}[reset] -> [green]{self.new}[reset]"
138 ),
140 f"{notice} To update, run: "
141 f"[green]{escape(pip_cmd)} install --upgrade pip"
142 ),
143 )
144
145
for i

References i.

Field Documentation

◆ new

str new
static

Definition at line 124 of file self_outdated_check.py.

Referenced by Retry.increment().

◆ old

str old
static

Definition at line 123 of file self_outdated_check.py.


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