Handle Python version/platform incompatibilities.
Class |
|
Undocumented |
Function | b |
Undocumented |
Function | b64decode |
Undocumented |
Function | b64encode |
Undocumented |
Function | cmp |
Undocumented |
Function | dataclass |
Return a sequence of all dataclasses.Field objects associated with a class as an already processed dataclass. |
Function | decode |
Undocumented |
Function | importlib |
Undocumented |
Function | inspect |
Copy formatargspec from python 3.7 standard library. |
Function | inspect |
Fully vendored version of getfullargspec from Python 3.3. |
Function | local |
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 |
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 |
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.
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.