hypothesis 6.135.11__py3-none-any.whl → 6.135.13__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.
@@ -117,7 +117,15 @@ class GenericCache(Generic[K, V]):
117
117
  raise ValueError(
118
118
  "Cannot increase size of cache where all keys have been pinned."
119
119
  ) from None
120
- del self.keys_to_indices[evicted.key]
120
+
121
+ # it's not clear to me how this can occur with a thread-local
122
+ # cache, but we've seen failures here before (specifically under
123
+ # the windows ci tests).
124
+ try:
125
+ del self.keys_to_indices[evicted.key]
126
+ except KeyError: # pragma: no cover
127
+ pass
128
+
121
129
  i = 0
122
130
  self.data[0] = entry
123
131
  else:
@@ -453,7 +453,7 @@ def get_pretty_function_description(f: object) -> str:
453
453
  return pretty(f)
454
454
  if not hasattr(f, "__name__"):
455
455
  return repr(f)
456
- name = f.__name__ # type: ignore # validated by hasattr above
456
+ name = f.__name__ # type: ignore
457
457
  if name == "<lambda>":
458
458
  return extract_lambda_source(f)
459
459
  elif isinstance(f, (types.MethodType, types.BuiltinMethodType)):
hypothesis/stateful.py CHANGED
@@ -504,8 +504,12 @@ class Rule:
504
504
  self.bundles = tuple(bundles)
505
505
 
506
506
  def __repr__(self) -> str:
507
- rep = get_pretty_function_description
508
- bits = [f"{k}={rep(v)}" for k, v in dataclasses.asdict(self).items() if v]
507
+ bits = [
508
+ f"{field.name}="
509
+ f"{get_pretty_function_description(getattr(self, field.name))}"
510
+ for field in dataclasses.fields(self)
511
+ if getattr(self, field.name)
512
+ ]
509
513
  return f"{self.__class__.__name__}({', '.join(bits)})"
510
514
 
511
515
 
hypothesis/version.py CHANGED
@@ -8,5 +8,5 @@
8
8
  # v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
9
  # obtain one at https://mozilla.org/MPL/2.0/.
10
10
 
11
- __version_info__ = (6, 135, 11)
11
+ __version_info__ = (6, 135, 13)
12
12
  __version__ = ".".join(map(str, __version_info__))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hypothesis
3
- Version: 6.135.11
3
+ Version: 6.135.13
4
4
  Summary: A library for property-based testing
5
5
  Author-email: "David R. MacIver and Zac Hatfield-Dodds" <david@drmaciver.com>
6
6
  License-Expression: MPL-2.0
@@ -12,9 +12,9 @@ hypothesis/errors.py,sha256=fci2Xe3kUIEBZ92361vot2f7IRjtfEn1aI1Bdf8vfRU,10048
12
12
  hypothesis/provisional.py,sha256=AmYdLs9Yuz6wrJ8QDO8EOX8njGfoVdUFeccuca5khl4,8052
13
13
  hypothesis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  hypothesis/reporting.py,sha256=f-jhl1JfAi5_tG8dsUd2qDjGcPdvxEzfF6hXmpTFQ1g,1761
15
- hypothesis/stateful.py,sha256=vQ8wDO7YW-8nGlBGLfR9ariwmRCS9jxJy-Ky3swXjDE,42861
15
+ hypothesis/stateful.py,sha256=33U0FtVuRnY5EzIiCL50SHAT6ZPe1n2pbaohkxTF6gc,42955
16
16
  hypothesis/statistics.py,sha256=kZ5mc0fAg7gnSO6EmDo82fyz8DYhIiJ_mHe7srxOeQ0,5438
17
- hypothesis/version.py,sha256=KBpmgeNY1SSGEsd2X5S3s5mYPUdk0FGBG7gXhBhzSFs,499
17
+ hypothesis/version.py,sha256=7K66pN_oQPeh0-Pp2Mw7lPtnPjXfrOk1Iyy-Q4F3p08,499
18
18
  hypothesis/extra/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
19
19
  hypothesis/extra/_array_helpers.py,sha256=PLmFckBfQpzQ4Q3dFJQqMmrbm7Qdvqxf1t9LHDCuSp0,27627
20
20
  hypothesis/extra/_patching.py,sha256=A5s5EAf81itr--w4SAFyzuecSZm4eT397jM7BvbnQXU,12385
@@ -35,7 +35,7 @@ hypothesis/extra/django/_impl.py,sha256=pqX1oethUqejBbZ3OoqKgGx9YEgAJ78BszMzJSer
35
35
  hypothesis/extra/pandas/__init__.py,sha256=QLIoS5U0ZQwOVfKWTLg6k-ZMdI3rGzcFixE1hem28CE,633
36
36
  hypothesis/extra/pandas/impl.py,sha256=Vpn9ljD3_Irbl_ZFQpTbE3dV1QW89Z6CR_0HWaXniXY,28445
37
37
  hypothesis/internal/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
38
- hypothesis/internal/cache.py,sha256=5GJ92S7HNjefuiOOSUchp3IYw1XxLVRmYoFHEoL7eVk,12683
38
+ hypothesis/internal/cache.py,sha256=mxBYIyPUI6F97VfO8b0zWka50-QTlsgZ3iEfuF8vVjI,12988
39
39
  hypothesis/internal/cathetus.py,sha256=q6t16mT2jzlJmBddhRlqC2wg_w7FggVDRAVkzs04W-U,2258
40
40
  hypothesis/internal/charmap.py,sha256=dIsRCxa6r1r-rF_NUy04Z-afFa2b6fCFEjWTMYsAgXY,11781
41
41
  hypothesis/internal/compat.py,sha256=CexhnEVndODX3E-iJmBzt_svqLmADF_6vWkd7lXLRQI,10970
@@ -49,7 +49,7 @@ hypothesis/internal/floats.py,sha256=0roRf0uHc-2sslppMGoFd--QFCeoO9PcdsM0ltgcQUc
49
49
  hypothesis/internal/healthcheck.py,sha256=JbCvnqtnulVne3egNMWY8koRqeKqhB8P0Wm0jn34As4,1130
50
50
  hypothesis/internal/intervalsets.py,sha256=hlg3wQ5vYYbyEpQe8g_3MxwHSJ1wzS3_ccma259jE5E,11952
51
51
  hypothesis/internal/observability.py,sha256=X2w1_CfpLZoSHGGHVRBEhxEpkjCTbie_Uyz5x4B5K_M,14291
52
- hypothesis/internal/reflection.py,sha256=cYufChZHYXiVW_7QWCXmZ-z8JiRU_FRK2NgBr_Sd49U,25277
52
+ hypothesis/internal/reflection.py,sha256=fjhHxU5AR3h4u5au6jCCSIPHHVTi7sk553TZT9FgY5k,25248
53
53
  hypothesis/internal/scrutineer.py,sha256=OtkCbUI8XIsVdOzo5oU_4vfINCggNNM-DjrLNOfYIOQ,11531
54
54
  hypothesis/internal/validation.py,sha256=jLs1GGf9Jf5Qp_g8JRZR8VGcV_ICw9wXsWIN5fb1WA8,4168
55
55
  hypothesis/internal/conjecture/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
@@ -105,9 +105,9 @@ hypothesis/utils/terminal.py,sha256=IxGYDGaE4R3b_vMfz5buWbN18XH5qVP4IxqAgNAU5as,
105
105
  hypothesis/vendor/__init__.py,sha256=gx4ENVDkrzBxy5Lv3Iyfs3tvMGdWMbiHfi95B7t61CY,415
106
106
  hypothesis/vendor/pretty.py,sha256=WEZC-UV-QQgCjUf2Iz1WWaWnbgT7Hc3s-GWEVxq-Qz0,36114
107
107
  hypothesis/vendor/tlds-alpha-by-domain.txt,sha256=W9hYvpu2BMmNgE-SfPp8-GTzEVjw0HJUviqlvHwpZu8,9588
108
- hypothesis-6.135.11.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
109
- hypothesis-6.135.11.dist-info/METADATA,sha256=9agDwV5-3dq4RVVQT9e0xAst9yCqd6av6yWH6V5V0p8,5638
110
- hypothesis-6.135.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
111
- hypothesis-6.135.11.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
112
- hypothesis-6.135.11.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
113
- hypothesis-6.135.11.dist-info/RECORD,,
108
+ hypothesis-6.135.13.dist-info/licenses/LICENSE.txt,sha256=rIkDe6xjVQZE3OjPMsZ2Xl-rncGhzpS4n4qAXzQaZ1A,17141
109
+ hypothesis-6.135.13.dist-info/METADATA,sha256=bzpeanOB2or_iIHo0kEptUdSMhIscS8VcDz_22BL33Y,5638
110
+ hypothesis-6.135.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
111
+ hypothesis-6.135.13.dist-info/entry_points.txt,sha256=JDoUs9w1bYme7aG_eJ1cCtstRTWD71BzG8iRi-G2eHE,113
112
+ hypothesis-6.135.13.dist-info/top_level.txt,sha256=ReGreaueiJ4d1I2kEiig_CLeA0sD4QCQ4qk_8kH1oDc,81
113
+ hypothesis-6.135.13.dist-info/RECORD,,