fqr.loggers.typ module

Loggers typing.

class LogRecordWithPrint

Bases: LogRecord

Log record with print message included.

printed: str
message: Mapping[AnyString, SupportedLogObject] | objects.Object | type[objects.Object] | str | string[StringType] | Array[SupportedLogObject]
class LogRecordWithPrintAndTraceBack

Bases: LogRecord

A fully populated log record.

printed: str
traceback: str
message: Mapping[AnyString, SupportedLogObject] | objects.Object | type[objects.Object] | str | string[StringType] | Array[SupportedLogObject]
class LogRecordWithTraceBack

Bases: LogRecord

Log record with traceback included.

traceback: str
message: Mapping[AnyString, SupportedLogObject] | objects.Object | type[objects.Object] | str | string[StringType] | Array[SupportedLogObject]
class string(**kwds)

Bases: str, Generic[StringType]

Generic str protocol.

capitalize(**kwds)

Helper for @overload to raise when called.

casefold(**kwds)

Helper for @overload to raise when called.

center(**kwds)

Helper for @overload to raise when called.

expandtabs(**kwds)

Helper for @overload to raise when called.

format(**kwds)

Helper for @overload to raise when called.

format_map(mapping) str

Return a formatted version of S, using substitutions from mapping. The substitutions are identified by braces (‘{’ and ‘}’).

join(**kwds)

Helper for @overload to raise when called.

ljust(**kwds)

Helper for @overload to raise when called.

lower(**kwds)

Helper for @overload to raise when called.

lstrip(**kwds)

Helper for @overload to raise when called.

partition(**kwds)

Helper for @overload to raise when called.

replace(**kwds)

Helper for @overload to raise when called.

removeprefix(**kwds)

Helper for @overload to raise when called.

removesuffix(**kwds)

Helper for @overload to raise when called.

rjust(**kwds)

Helper for @overload to raise when called.

rpartition(**kwds)

Helper for @overload to raise when called.

rsplit(**kwds)

Helper for @overload to raise when called.

rstrip(**kwds)

Helper for @overload to raise when called.

split(**kwds)

Helper for @overload to raise when called.

splitlines(**kwds)

Helper for @overload to raise when called.

strip(**kwds)

Helper for @overload to raise when called.

swapcase(**kwds)

Helper for @overload to raise when called.

title(**kwds)

Helper for @overload to raise when called.

translate(table: lib.builtins._TranslateTable, /) string[StringType] | string[lib.t.Any]

Replace each character in the string using the given translation table.

table Translation table, which must be a mapping of Unicode ordinals to Unicode ordinals, strings, or None.

The table must implement lookup/indexing via getitem, for instance a dictionary or list. If this operation raises LookupError, the character is left untouched. Characters mapped to None are deleted.

upper(**kwds)

Helper for @overload to raise when called.

zfill(**kwds)

Helper for @overload to raise when called.

class NoneType

Bases: object

Typed

alias of SupportsAnnotations

UnionGenericAlias

alias of UnionType