MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / attr

Method attr

lib/sqlalchemy/dialects/mysql/base.py:2408–2409  ·  view source on GitHub ↗
(name: str)

Source from the content-addressed store, hash-verified

2406 """
2407
2408 def attr(name: str) -> Any:
2409 return getattr(type_, name, defaults.get(name))
2410
2411 if attr("charset"):
2412 charset = "CHARACTER SET %s" % attr("charset")

Callers 2

test_memoized_slotsMethod · 0.45

Calls 1

getMethod · 0.45

Tested by 2

test_memoized_slotsMethod · 0.36