Let us walk on the 3-isogeny graph
Loading...
Searching...
No Matches
AttemptManager Class Reference

Public Member Functions

 __init__ (self, "RetryCallState" retry_state)
 
None __enter__ (self)
 
t.Optional[bool] __exit__ (self, t.Optional[t.Type[BaseException]] exc_type, t.Optional[BaseException] exc_value, t.Optional["types.TracebackType"] traceback)
 

Data Fields

 retry_state
 

Detailed Description

Manage attempt context.

Definition at line 167 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ (   self,
"RetryCallState"  retry_state 
)

Definition at line 170 of file __init__.py.

170 def __init__(self, retry_state: "RetryCallState"):
171 self.retry_state = retry_state
172

Referenced by Protocol.__init_subclass__().

Here is the caller graph for this function:

Member Function Documentation

◆ __enter__()

None __enter__ (   self)

Definition at line 173 of file __init__.py.

173 def __enter__(self) -> None:
174 pass
175

◆ __exit__()

t.Optional[bool] __exit__ (   self,
t.Optional[t.Type[BaseException]]  exc_type,
t.Optional[BaseException]  exc_value,
t.Optional["types.TracebackType"]  traceback 
)

Definition at line 176 of file __init__.py.

181 ) -> t.Optional[bool]:
182 if exc_type is not None and exc_value is not None:
183 self.retry_state.set_exception((exc_type, exc_value, traceback))
184 return True # Swallow exception.
185 else:
186 # We don't have the result, actually.
187 self.retry_state.set_result(None)
188 return None
189
190
for i

Field Documentation

◆ retry_state

retry_state

Definition at line 171 of file __init__.py.


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