MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / coerce

Method coerce

test/ext/test_mutable.py:104–107  ·  view source on GitHub ↗
(cls, key, value)

Source from the content-addressed store, hash-verified

102class MyPoint(Point):
103 @classmethod
104 def coerce(cls, key, value):
105 if isinstance(value, tuple):
106 value = Point(*value)
107 return value
108
109
110@dataclasses.dataclass

Callers 15

_make_path_registryMethod · 0.45
test_root_registryMethod · 0.45
test_expandMethod · 0.45
test_entity_booleanMethod · 0.45
test_key_booleanMethod · 0.45
test_aliased_classMethod · 0.45
test_indexed_entityMethod · 0.45
test_slice_tokenMethod · 0.45
test_indexed_keyMethod · 0.45
test_sliceMethod · 0.45
test_additionMethod · 0.45

Calls 1

PointClass · 0.70

Tested by

no test coverage detected