We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b995c4a commit 650ce22Copy full SHA for 650ce22
xarray/core/utils.py
@@ -109,16 +109,16 @@ def maybe_coerce_to_str(index, original_coords):
109
raise e
110
else:
111
112
- def _is_MutableMapping(
113
- obj: Mapping[Any, Any]
114
- ) -> TypeGuard[MutableMapping[Any, Any]]:
+ def _is_MutableMapping(obj: Mapping[Any, Any]) -> bool:
115
"""Check if the object is a mutable mapping."""
116
return hasattr(obj, "__setitem__")
117
118
119
120
121
- def _is_MutableMapping(obj: Mapping[Any, Any]) -> bool:
+ def _is_MutableMapping(
+ obj: Mapping[Any, Any]
+ ) -> TypeGuard[MutableMapping[Any, Any]]:
122
123
124
0 commit comments