|
1 | 1 | from typing import AbstractSet |
2 | 2 | from typing import Any |
3 | 3 | from typing import Callable |
4 | | -from typing import Mapping |
| 4 | +from typing import MutableMapping |
5 | 5 | from typing import Optional |
6 | 6 | from typing import Sequence |
7 | 7 | from typing import Tuple |
@@ -44,7 +44,6 @@ def foreign(expr: Any): ... |
44 | 44 |
|
45 | 45 | _T = TypeVar("_T") |
46 | 46 |
|
47 | | -_InfoDict = Mapping[Any, Any] |
48 | 47 | _OrderByArgument = Union[ |
49 | 48 | Literal[False], |
50 | 49 | str, |
@@ -91,7 +90,7 @@ class RelationshipProperty(StrategizedProperty[_T]): |
91 | 90 | load_on_pending: bool |
92 | 91 | comparator_factory: Any |
93 | 92 | 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`` |
95 | 94 | strategy_key: Tuple[Tuple[str, str]] # NOTE: not documented |
96 | 95 | order_by: Any |
97 | 96 | back_populates: Union[None, str] |
@@ -129,7 +128,7 @@ class RelationshipProperty(StrategizedProperty[_T]): |
129 | 128 | bake_queries: bool = ..., |
130 | 129 | _local_remote_pairs: Optional[Any] = ..., |
131 | 130 | query_class: Optional[Any] = ..., |
132 | | - info: Optional[_InfoDict] = ..., |
| 131 | + info: Optional[MutableMapping[Any, Any]] = ..., |
133 | 132 | omit_join: Optional[Literal[False]] = ..., |
134 | 133 | sync_backref: Optional[Any] = ..., |
135 | 134 | ) -> None: ... |
|
0 commit comments