module documentation
The :class:`.Annotated` class and related routines; creates hash-equivalent copies of SQL constructs which contain context-specific markers and associations. Note that the :class:`.Annotated` concept as implemented in this module is not related in any way to the pep-593 concept of "Annotated".
Class |
|
clones a SupportsAnnotations and applies an 'annotations' dictionary. |
Class |
|
Undocumented |
Class |
|
No class docstring; 0/2 class variable, 3/3 methods documented |
Class |
|
No class docstring; 0/1 property, 0/2 class variable, 3/3 methods documented |
Variable | annotated |
Undocumented |
Function | _deep |
Deep copy the given ClauseElement, annotating each element with the given annotations dictionary. |
Function | _deep |
Deep copy the given element, removing annotations. |
Function | _new |
Generates a new class that subclasses Annotated and proxies a given element type. |
Function | _prepare |
Undocumented |
Function | _shallow |
Annotate the given ClauseElement and copy its internals so that internal objects refer to the new annotated object. |
Type Variable | _SA |
Undocumented |
Type Alias | _ |
Undocumented |
def _deep_annotate(element:
_SA
, annotations: _AnnotationDict
, exclude: Optional[ Sequence[ SupportsAnnotations]]
= None, detect_subquery_cols: bool
= False, ind_cols_on_fromclause: bool
= False) -> _SA
:
(source)
¶
Deep copy the given ClauseElement, annotating each element with the given annotations dictionary. Elements within the exclude collection will be cloned but not annotated.
@overload
(source) ¶
def _deep_deannotate(element:
@overloadLiteral[ None]
, values: Optional[ Sequence[ str]]
= None) -> Literal[ None]
:(source) ¶
Deep copy the given element, removing annotations.
def _new_annotation_type(cls:
Type[ SupportsWrappingAnnotations]
, base_cls: Type[ Annotated]
) -> Type[ Annotated]
:
(source)
¶
Generates a new class that subclasses Annotated and proxies a given element type.
def _prepare_annotations(target_hierarchy:
Type[ SupportsWrappingAnnotations]
, base_cls: Type[ Annotated]
):
(source)
¶
Undocumented