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

Public Member Functions

str __repr__ (self)
 
str __str__ (self)
 

Static Public Attributes

tuple REPR_FIELDS = ()
 
NAME = None
 

Detailed Description

Base class for representing actions to take by retry object.

Concrete implementations must define:
- __init__: to initialize all necessary fields
- REPR_FIELDS: class variable specifying attributes to include in repr(self)
- NAME: for identification in retry object methods and callbacks

Definition at line 116 of file __init__.py.

Member Function Documentation

◆ __repr__()

str __repr__ (   self)

Definition at line 128 of file __init__.py.

128 def __repr__(self) -> str:
129 state_str = ", ".join(f"{field}={getattr(self, field)!r}" for field in self.REPR_FIELDS)
130 return f"{self.__class__.__name__}({state_str})"
131

References BaseAction.REPR_FIELDS, and RetryAction.REPR_FIELDS.

◆ __str__()

str __str__ (   self)

Definition at line 132 of file __init__.py.

132 def __str__(self) -> str:
133 return repr(self)
134
135

Field Documentation

◆ NAME

t NAME = None
static

Definition at line 126 of file __init__.py.

◆ REPR_FIELDS

tuple REPR_FIELDS = ()
static

Definition at line 125 of file __init__.py.

Referenced by BaseAction.__repr__().


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