Module graia.broadcast.entities.track_log
Expand source code
from enum import IntEnum, auto
from typing import Any, List, Tuple, NamedTuple
class TrackLogType(IntEnum):
LookupStart = auto()
LookupEnd = auto()
Continue = auto()
Result = auto()
RequirementCrashed = auto()
T_TrackLogItem = Tuple[TrackLogType, Any]
class TrackLog:
__slots__ = ("log", "fluent_success")
def __init__(self) -> None:
self.log = []
self.fluent_success = True
log: List[T_TrackLogItem]
fluent_success: bool
Classes
class TrackLog
-
Expand source code
class TrackLog: __slots__ = ("log", "fluent_success") def __init__(self) -> None: self.log = [] self.fluent_success = True log: List[T_TrackLogItem] fluent_success: bool
Instance variables
var fluent_success : bool
-
Return an attribute of instance, which is of type owner.
var log : List[Tuple[TrackLogType, Any]]
-
Return an attribute of instance, which is of type owner.
class TrackLogType (value, names=None, *, module=None, qualname=None, type=None, start=1)
-
An enumeration.
Expand source code
class TrackLogType(IntEnum): LookupStart = auto() LookupEnd = auto() Continue = auto() Result = auto() RequirementCrashed = auto()
Ancestors
- enum.IntEnum
- builtins.int
- enum.Enum
Class variables
var Continue
var LookupEnd
var LookupStart
var RequirementCrashed
var Result