diplomat.utils.extract_frames.BorderStyle

class diplomat.utils.extract_frames.BorderStyle(top_left: str, top_right: str, bottom_right: str, bottom_left: str, top: str, right: str, bottom: str, left: str, info_func: ~typing.Callable[[int, int], str] = <function BorderStyle.<lambda>>)[source]

Bases: NamedTuple

A named tuple, for representing a border style for the pretty print methods, mostly used internally…

__init__()

Methods

__init__()

count(value, /)

Return number of occurrences of value.

index(value[, start, stop])

Return first index of value.

Attributes

bottom

Alias for field number 6

bottom_left

Alias for field number 3

bottom_right

Alias for field number 2

info_func

Alias for field number 8

left

Alias for field number 7

right

Alias for field number 5

top

Alias for field number 4

top_left

Alias for field number 0

top_right

Alias for field number 1

bottom: str

Alias for field number 6

bottom_left: str

Alias for field number 3

bottom_right: str

Alias for field number 2

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

info_func: Callable[[int, int], str]

Alias for field number 8

left: str

Alias for field number 7

right: str

Alias for field number 5

top: str

Alias for field number 4

top_left: str

Alias for field number 0

top_right: str

Alias for field number 1