class ReprMode

source code

dunder_methods


__enter__

source code

def __enter__(self) -> None:

__exit__

source code

def __exit__(self, exc_type, exc_val, exc_tb):

__init__

source code

def __init__(self, val: str):

Set a representation mode for a specific context in the code, by using the with an instantiation of this class.

Arguments:

  • val - The value of the string, must be either “verbose” or “concise”.

__repr__

source code

def __repr__(self):

__str__

source code

def __str__(self):