MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / __go

Function __go

lib/sqlalchemy/sql/__init__.py:111–142  ·  view source on GitHub ↗
(lcls: Any)

Source from the content-addressed store, hash-verified

109
110
111def __go(lcls: Any) -> None:
112 from .. import util as _sa_util
113
114 from . import base
115 from . import coercions
116 from . import elements
117 from . import lambdas
118 from . import selectable
119 from . import schema
120 from . import traversals
121 from . import type_api
122
123 if not TYPE_CHECKING:
124 base.coercions = elements.coercions = coercions
125 base.elements = elements
126 base.type_api = type_api
127 coercions.elements = elements
128 coercions.lambdas = lambdas
129 coercions.schema = schema
130 coercions.selectable = selectable
131
132 from .annotation import _prepare_annotations
133 from .annotation import Annotated
134 from .elements import AnnotatedColumnElement
135 from .elements import ClauseList
136 from .selectable import AnnotatedFromClause
137
138 _prepare_annotations(ColumnElement, AnnotatedColumnElement)
139 _prepare_annotations(FromClause, AnnotatedFromClause)
140 _prepare_annotations(ClauseList, Annotated)
141
142 _sa_util.preloaded.import_prefix("sqlalchemy.sql")
143
144
145__go(locals())

Callers 1

__init__.pyFile · 0.70

Calls 2

_prepare_annotationsFunction · 0.85
import_prefixMethod · 0.80

Tested by

no test coverage detected