MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __new__

Method __new__

lib/sqlalchemy/sql/elements.py:5751–5760  ·  view source on GitHub ↗
(cls, value: str, quote: Optional[bool])

Source from the content-addressed store, hash-verified

5749 return quoted_name(value, quote)
5750
5751 def __new__(cls, value: str, quote: Optional[bool]) -> quoted_name:
5752 assert (
5753 value is not None
5754 ), "use quoted_name.construct() for None passthrough"
5755 if isinstance(value, cls) and (quote is None or value.quote == quote):
5756 return value
5757 self = super().__new__(cls, value)
5758
5759 self.quote = quote
5760 return self
5761
5762 def __reduce__(self):
5763 return quoted_name, (str(self), self.quote)

Callers 6

_cloneMethod · 0.45
columnsMethod · 0.45
_construct_rawMethod · 0.45
_construct_for_listMethod · 0.45
_construct_rawMethod · 0.45
__new__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected