MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / A

Class A

test/ext/test_hybrid.py:1610–1618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1608 """fixture with a single-col hybrid"""
1609
1610 class A(decl_base):
1611 __tablename__ = "a"
1612 id: Mapped[int] = mapped_column(primary_key=True)
1613
1614 x: Mapped[int]
1615
1616 @hybrid.hybrid_property
1617 def x_plain(self):
1618 return self.x
1619
1620 return A
1621

Callers 11

test_set_getMethod · 0.70
test_set_getMethod · 0.70
test_docstringMethod · 0.70
test_nonassignableMethod · 0.70
test_nondeletableMethod · 0.70
test_set_getMethod · 0.70
test_get_historyMethod · 0.70
test_instance_accessMethod · 0.70
test_callMethod · 0.70
test_docstringMethod · 0.70

Calls 1

mapped_columnFunction · 0.90

Tested by 11

test_set_getMethod · 0.56
test_set_getMethod · 0.56
test_docstringMethod · 0.56
test_nonassignableMethod · 0.56
test_nondeletableMethod · 0.56
test_set_getMethod · 0.56
test_get_historyMethod · 0.56
test_instance_accessMethod · 0.56
test_callMethod · 0.56
test_docstringMethod · 0.56