MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _is_userland_descriptor

Method _is_userland_descriptor

lib/sqlalchemy/orm/mapper.py:3256–3267  ·  view source on GitHub ↗
(self, assigned_name: str, obj: Any)

Source from the content-addressed store, hash-verified

3254 return result
3255
3256 def _is_userland_descriptor(self, assigned_name: str, obj: Any) -> bool:
3257 if isinstance(
3258 obj,
3259 (
3260 _MappedAttribute,
3261 instrumentation.ClassManager,
3262 expression.ColumnElement,
3263 ),
3264 ):
3265 return False
3266 else:
3267 return assigned_name not in self._dataclass_fields
3268
3269 @HasMemoized.memoized_attribute
3270 def _dataclass_fields(self):

Callers 3

_should_excludeMethod · 0.95
instrument_classMethod · 0.80

Calls

no outgoing calls

Tested by 1