module documentation

Handle Python version/platform incompatibilities.

Class FullArgSpec Undocumented
Function b Undocumented
Function b64decode Undocumented
Function b64encode Undocumented
Function cmp Undocumented
Function dataclass_fields Return a sequence of all dataclasses.Field objects associated with a class as an already processed dataclass.
Function decode_backslashreplace Undocumented
Function importlib_metadata_get Undocumented
Function inspect_formatargspec Copy formatargspec from python 3.7 standard library.
Function inspect_getfullargspec Fully vendored version of getfullargspec from Python 3.3.
Function local_dataclass_fields Return a sequence of all dataclasses.Field objects associated with an already processed dataclass, excluding those that originate from a superclass.
Variable arm Undocumented
Variable cpython Undocumented
Variable has_refcount_gc Undocumented
Variable is64bit Undocumented
Variable osx Undocumented
Variable py310 Undocumented
Variable py311 Undocumented
Variable py312 Undocumented
Variable py38 Undocumented
Variable py39 Undocumented
Variable pypy Undocumented
Variable win32 Undocumented
Function _formatannotation vendored from python 3.7

Undocumented

def b64decode(x: str) -> bytes: (source)

Undocumented

def b64encode(x: bytes) -> str: (source)

Undocumented

def cmp(a, b): (source)

Undocumented

def dataclass_fields(cls: Type[Any]) -> Iterable[dataclasses.Field[Any]]: (source)

Return a sequence of all dataclasses.Field objects associated with a class as an already processed dataclass. The class must **already be a dataclass** for Field objects to be returned.

def decode_backslashreplace(text: bytes, encoding: str) -> str: (source)

Undocumented

def importlib_metadata_get(group): (source)

Undocumented

def inspect_formatargspec(args: List[str], varargs: Optional[str] = None, varkw: Optional[str] = None, defaults: Optional[Sequence[Any]] = None, kwonlyargs: Optional[Sequence[str]] = (), kwonlydefaults: Optional[Mapping[str, Any]] = {}, annotations: Mapping[str, Any] = {}, formatarg: Callable[[str], str] = str, formatvarargs: Callable[[str], str] = (lambda name: '*' + name), formatvarkw: Callable[[str], str] = (lambda name: '**' + name), formatvalue: Callable[[Any], str] = (lambda value: '=' + repr(value)), formatreturns: Callable[[Any], str] = (lambda text: ' -> ' + str(text)), formatannotation: Callable[[Any], str] = _formatannotation) -> str: (source)

Copy formatargspec from python 3.7 standard library. Python 3 has deprecated formatargspec and requested that Signature be used instead, however this requires a full reimplementation of formatargspec() in terms of creating Parameter objects and such. Instead of introducing all the object-creation overhead and having to reinvent from scratch, just copy their compatibility routine. Ultimately we would need to rewrite our "decorator" routine completely which is not really worth it right now, until all Python 2.x support is dropped.

def inspect_getfullargspec(func: Callable[..., Any]) -> FullArgSpec: (source)

Fully vendored version of getfullargspec from Python 3.3.

def local_dataclass_fields(cls: Type[Any]) -> Iterable[dataclasses.Field[Any]]: (source)

Return a sequence of all dataclasses.Field objects associated with an already processed dataclass, excluding those that originate from a superclass. The class must **already be a dataclass** for Field objects to be returned.

Undocumented

Undocumented

has_refcount_gc = (source)

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

def _formatannotation(annotation, base_module=None): (source)

vendored from python 3.7