module documentation

Workaround for the lack of TypeForm.

Function actuallyDefinedProtocolMethods Attempt to ignore implementation details, and get all the methods that the protocol actually defines.
Function runtime_name Undocumented
Type Variable T Undocumented
Type Alias ProtocolAtRuntime Undocumented
Variable emptyProtocolMethods Undocumented
Function _fixAnnotation Undocumented
Function _liveSignature Get a signature with evaluated annotations.
def actuallyDefinedProtocolMethods(protocol: object) -> frozenset[str]: (source)

Attempt to ignore implementation details, and get all the methods that the protocol actually defines.

that includes locally defined methods and also those defined in inherited superclasses.

def runtime_name(x: ProtocolAtRuntime[T]) -> str: (source)

Undocumented

Undocumented

Value
TypeVar('T')
ProtocolAtRuntime = (source)

Undocumented

Value
Callable[[], T]
emptyProtocolMethods: frozenset[str] = (source)

Undocumented

def _fixAnnotation(method: Callable[..., object], it: object, ann: str): (source)

Undocumented

def _liveSignature(method: Callable[..., object]) -> Signature: (source)

Get a signature with evaluated annotations.