Skip to content

Types

rn_forge.commons.lang.types

Shared type aliases and typed third-party integration boundaries.

JsonValue = str | int | float | bool | None | list['JsonValue'] | dict[str, 'JsonValue']

Any value :func:json.dumps accepts, recursively.

Annotating "arbitrary JSON metadata" as dict[str, Any] makes every read of it untyped; callers of this alias must narrow values before using them.

VerboseLoggerBase

Bases: Logger

Typed stand-in for the untyped :class:verboselogs.VerboseLogger.

Declares only the extra levels verboselogs adds on top of :class:logging.Logger, so super() calls to them type-check.