MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / cast

Function cast

lib/sqlalchemy/util/cython.py:62–63  ·  view source on GitHub ↗
(type_: Type[_T], value: Any, *, typecheck: bool = False)

Source from the content-addressed store, hash-verified

60
61
62def cast(type_: Type[_T], value: Any, *, typecheck: bool = False) -> _T:
63 return value # type: ignore[no-any-return]
64
65
66def returns(_: type) -> _NO_OP[_T]:

Callers 15

test_clauseMethod · 0.90
test_use_labelsMethod · 0.90
check_resultsMethod · 0.90
test_castMethod · 0.90
test_namingMethod · 0.90
test_unknown_typeMethod · 0.90
test_castMethod · 0.90
CoreFixturesClass · 0.90

Calls

no outgoing calls

Tested by 15

test_clauseMethod · 0.72
test_use_labelsMethod · 0.72
check_resultsMethod · 0.72
test_castMethod · 0.72
test_namingMethod · 0.72
test_unknown_typeMethod · 0.72
test_castMethod · 0.72