decoy 2.2.1__tar.gz → 2.2.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {decoy-2.2.1 → decoy-2.2.2}/PKG-INFO +1 -1
- {decoy-2.2.1 → decoy-2.2.2}/decoy/matchers.py +4 -5
- {decoy-2.2.1 → decoy-2.2.2}/pyproject.toml +1 -1
- {decoy-2.2.1 → decoy-2.2.2}/LICENSE +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/README.md +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/__init__.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/call_handler.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/context_managers.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/core.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/errors.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/mypy/__init__.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/mypy/plugin.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/py.typed +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/pytest_plugin.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/spy.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/spy_core.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/spy_events.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/spy_log.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/stringify.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/stub_store.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/types.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/verifier.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/warning_checker.py +0 -0
- {decoy-2.2.1 → decoy-2.2.2}/decoy/warnings.py +0 -0
|
@@ -28,8 +28,7 @@ See the [matchers guide][] for more details.
|
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
30
|
from re import compile as compile_re
|
|
31
|
-
from typing import
|
|
32
|
-
|
|
31
|
+
from typing import Any, List, Mapping, Optional, Pattern, Type, TypeVar, cast
|
|
33
32
|
|
|
34
33
|
__all__ = [
|
|
35
34
|
"Anything",
|
|
@@ -212,9 +211,9 @@ def HasAttributes(attributes: Mapping[str, Any]) -> Any:
|
|
|
212
211
|
|
|
213
212
|
|
|
214
213
|
class _DictMatching:
|
|
215
|
-
_values: Mapping[
|
|
214
|
+
_values: Mapping[Any, Any]
|
|
216
215
|
|
|
217
|
-
def __init__(self, values: Mapping[
|
|
216
|
+
def __init__(self, values: Mapping[Any, Any]) -> None:
|
|
218
217
|
self._values = values
|
|
219
218
|
|
|
220
219
|
def __eq__(self, target: object) -> bool:
|
|
@@ -235,7 +234,7 @@ class _DictMatching:
|
|
|
235
234
|
return f"<DictMatching {self._values!r}>"
|
|
236
235
|
|
|
237
236
|
|
|
238
|
-
def DictMatching(values: Mapping[
|
|
237
|
+
def DictMatching(values: Mapping[Any, Any]) -> Any:
|
|
239
238
|
"""Match any dictionary with the passed in keys / values.
|
|
240
239
|
|
|
241
240
|
Arguments:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|