Query.__init__(
self, attr.target_mapper, None # type: ignore[arg-type]
)
- super().__init__(attr, state)
+ super().__init__(attr, state) # type: ignore
@property
def session(self) -> Optional[Session]:
result.SimpleResultMetaData([self.attr.class_.__name__]),
self.attr._get_collection_history(
attributes.instance_state(self.instance),
- attributes.PASSIVE_NO_INITIALIZE,
+ attributes.PASSIVE_NO_INITIALIZE, # type: ignore
).added_items,
_source_supports_scalars=True,
).scalars()
if sess is None:
return self.attr._get_collection_history(
attributes.instance_state(self.instance),
- attributes.PASSIVE_NO_INITIALIZE,
+ attributes.PASSIVE_NO_INITIALIZE, # type: ignore
).indexed(index)
else:
return self._generate(sess).__getitem__(index)
return len(
self.attr._get_collection_history(
attributes.instance_state(self.instance),
- attributes.PASSIVE_NO_INITIALIZE,
+ attributes.PASSIVE_NO_INITIALIZE, # type: ignore
).added_items
)
else: