Skip to content

Commit d321933

Browse files
committed
also update relationship info property.
1 parent 981887e commit d321933

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

sqlalchemy-stubs/orm/relationships.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from typing import AbstractSet
22
from typing import Any
33
from typing import Callable
4-
from typing import Mapping
4+
from typing import MutableMapping
55
from typing import Optional
66
from typing import Sequence
77
from typing import Tuple
@@ -44,7 +44,6 @@ def foreign(expr: Any): ...
4444

4545
_T = TypeVar("_T")
4646

47-
_InfoDict = Mapping[Any, Any]
4847
_OrderByArgument = Union[
4948
Literal[False],
5049
str,
@@ -91,7 +90,7 @@ class RelationshipProperty(StrategizedProperty[_T]):
9190
load_on_pending: bool
9291
comparator_factory: Any
9392
comparator: Any
94-
info: _InfoDict # NOTE: not set if constructor argument is ``None``
93+
info: MutableMapping[Any, Any] # NOTE: not set if constructor argument is ``None``
9594
strategy_key: Tuple[Tuple[str, str]] # NOTE: not documented
9695
order_by: Any
9796
back_populates: Union[None, str]
@@ -129,7 +128,7 @@ class RelationshipProperty(StrategizedProperty[_T]):
129128
bake_queries: bool = ...,
130129
_local_remote_pairs: Optional[Any] = ...,
131130
query_class: Optional[Any] = ...,
132-
info: Optional[_InfoDict] = ...,
131+
info: Optional[MutableMapping[Any, Any]] = ...,
133132
omit_join: Optional[Literal[False]] = ...,
134133
sync_backref: Optional[Any] = ...,
135134
) -> None: ...

0 commit comments

Comments
 (0)