decoy 2.2.1__py3-none-any.whl → 2.2.2__py3-none-any.whl

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/matchers.py CHANGED
@@ -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 cast, Any, List, Mapping, Optional, Pattern, Type, TypeVar
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[str, Any]
214
+ _values: Mapping[Any, Any]
216
215
 
217
- def __init__(self, values: Mapping[str, Any]) -> None:
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[str, Any]) -> Any:
237
+ def DictMatching(values: Mapping[Any, Any]) -> Any:
239
238
  """Match any dictionary with the passed in keys / values.
240
239
 
241
240
  Arguments:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: decoy
3
- Version: 2.2.1
3
+ Version: 2.2.2
4
4
  Summary: Opinionated mocking library for Python
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE
@@ -3,7 +3,7 @@ decoy/call_handler.py,sha256=fuhWr9VAnh0FUvbfWw11fpdQ_GCUE3Hah-EXvdk3gGw,1512
3
3
  decoy/context_managers.py,sha256=oYsH99ZPmkaCcqjCrOWInueO5ympHm_ICWmbpFoQzqA,1287
4
4
  decoy/core.py,sha256=0YsQFnL4Kw_oDX7jRgOVLw9BGsnNdekymQCd1aq-4sQ,5830
5
5
  decoy/errors.py,sha256=mmUAOoQQyXhCLjMcf_3bHMz3PjU7bingIU6sC3hk2B4,3119
6
- decoy/matchers.py,sha256=_hIyrBZfwRqhQKpiBczN7OVIBw1n3IRfZRv2lhQqgzM,11299
6
+ decoy/matchers.py,sha256=TFa3ZLewXPxhuUy_YDktzJWMfdOgfz4jq2TQ9oa6hwk,11298
7
7
  decoy/mypy/__init__.py,sha256=GdJCf-gXpYB4SBr-Rm8zCLZQxAUuLjPyUieIWgLmdwA,86
8
8
  decoy/mypy/plugin.py,sha256=nCfo4XpDxBRDsInDsvCe6h8t7-1OV0ZCJzIJqTsAU0I,1359
9
9
  decoy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -18,8 +18,8 @@ decoy/types.py,sha256=LXzky6T0RXvS53NoPpVgCi3KVV6KCyB6EvnBl0NaKug,404
18
18
  decoy/verifier.py,sha256=3ZVqaUJPjaNM9Nue3FK6Zzj15qWskX2CEQXoe_yjUEs,1586
19
19
  decoy/warning_checker.py,sha256=OOkcrr_I98Pzs3o9UUNgaihJDHwNiu1LlcEK9hi5ZFs,3577
20
20
  decoy/warnings.py,sha256=DLdX1ABPk6QvhJWt5s98uR7rCQFQdJJjSPPXRSX0nXA,3203
21
- decoy-2.2.1.dist-info/METADATA,sha256=NSyb-y2FGxtmuCo_rCHkHbxosqfmC6yzh5x9hUMWdkU,6855
22
- decoy-2.2.1.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
23
- decoy-2.2.1.dist-info/entry_points.txt,sha256=P2wF8zdthEM-3Yo32kxHDhZDjbW6AE489HPWqnvPLOU,38
24
- decoy-2.2.1.dist-info/licenses/LICENSE,sha256=Rxi19kHgqakAsJNG1jMuORmgKx9bI8Pcu_gtzFkhflQ,1078
25
- decoy-2.2.1.dist-info/RECORD,,
21
+ decoy-2.2.2.dist-info/METADATA,sha256=hKPZiHbc6RDbYOJ9iwIZ0wvRhrOn3UYxPSCAqABg9Tc,6855
22
+ decoy-2.2.2.dist-info/WHEEL,sha256=zp0Cn7JsFoX2ATtOhtaFYIiE2rmFAD4OcMhtUki8W3U,88
23
+ decoy-2.2.2.dist-info/entry_points.txt,sha256=P2wF8zdthEM-3Yo32kxHDhZDjbW6AE489HPWqnvPLOU,38
24
+ decoy-2.2.2.dist-info/licenses/LICENSE,sha256=Rxi19kHgqakAsJNG1jMuORmgKx9bI8Pcu_gtzFkhflQ,1078
25
+ decoy-2.2.2.dist-info/RECORD,,
File without changes