django_socio_grpc.protobuf.typing

Module Contents

Classes

FieldCardinality

Enum to use for the cardinality dictionnary key for grpc_action request and response

FieldDict

Typed dict to help format request and response params of grpc_action decorator.

API

class django_socio_grpc.protobuf.typing.FieldCardinality

Bases: str, enum.Enum

Enum to use for the cardinality dictionnary key for grpc_action request and response

Initialization

Initialize self. See help(type(self)) for accurate signature.

NONE = <Multiline-String>
OPTIONAL

‘optional’

REPEATED

‘repeated’

class django_socio_grpc.protobuf.typing.FieldDict

Bases: typing_extensions.TypedDict

Typed dict to help format request and response params of grpc_action decorator.

Initialization

Initialize self. See help(type(self)) for accurate signature.

name: str

None

type: str | enum.Enum

None

cardinality: typing_extensions.NotRequired[django_socio_grpc.protobuf.typing.FieldCardinality]

None

comment: typing_extensions.NotRequired[str | list[str]]

None