Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
62
def
cast(type_: Type[_T], value: Any, *, typecheck: bool = False) -> _T:
63
return
value
# type: ignore[no-any-return]
64
65
66
def
returns(_: type) -> _NO_OP[_T]:
Callers
15
test_from_sql_onupdate
Method · 0.90
test_from_sql_expr_multiple_dmlcol
Method · 0.90
test_select_from_bindparam
Method · 0.90
test_filter_by_from_cast
Method · 0.90
test_clause
Method · 0.90
test_use_labels
Method · 0.90
check_results
Method · 0.90
test_cast
Method · 0.90
test_naming
Method · 0.90
test_unknown_type
Method · 0.90
test_cast
Method · 0.90
CoreFixtures
Class · 0.90
Calls
no outgoing calls
Tested by
15
test_from_sql_onupdate
Method · 0.72
test_from_sql_expr_multiple_dmlcol
Method · 0.72
test_select_from_bindparam
Method · 0.72
test_filter_by_from_cast
Method · 0.72
test_clause
Method · 0.72
test_use_labels
Method · 0.72
check_results
Method · 0.72
test_cast
Method · 0.72
test_naming
Method · 0.72
test_unknown_type
Method · 0.72
test_cast
Method · 0.72
test_aggregate_strings_execute
Method · 0.72