File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/hypothesis/strategies/_internal Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,4 @@ exclude_lines =
28
28
if TYPE_CHECKING:
29
29
if sys\.version_info
30
30
if " [\w\.]+" in sys\.modules:
31
+ if .+ := sys\.modules\.get\(" [\w\.]+" \)
Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ def is_annotated_type(thing):
275
275
276
276
277
277
def get_constraints_filter_map ():
278
- if at := sys .modules .get ("annotated_types" ): # pragma: no branch
278
+ if at := sys .modules .get ("annotated_types" ):
279
279
return {
280
280
# Due to the order of operator.gt/ge/lt/le arguments, order is inversed:
281
281
at .Gt : lambda constraint : partial (operator .lt , constraint .gt ),
@@ -290,7 +290,7 @@ def get_constraints_filter_map():
290
290
291
291
292
292
def _get_constraints (args : Tuple [Any , ...]) -> Iterator ["at.BaseMetadata" ]:
293
- if at := sys .modules .get ("annotated_types" ): # pragma: no branch
293
+ if at := sys .modules .get ("annotated_types" ):
294
294
for arg in args :
295
295
if isinstance (arg , at .BaseMetadata ):
296
296
yield arg
You can’t perform that action at this time.
0 commit comments