File tree Expand file tree Collapse file tree
src/hypothesis/strategies/_internal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,3 +28,4 @@ exclude_lines =
2828 if TYPE_CHECKING:
2929 if sys\.version_info
3030 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):
275275
276276
277277def get_constraints_filter_map ():
278- if at := sys .modules .get ("annotated_types" ): # pragma: no branch
278+ if at := sys .modules .get ("annotated_types" ):
279279 return {
280280 # Due to the order of operator.gt/ge/lt/le arguments, order is inversed:
281281 at .Gt : lambda constraint : partial (operator .lt , constraint .gt ),
@@ -290,7 +290,7 @@ def get_constraints_filter_map():
290290
291291
292292def _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" ):
294294 for arg in args :
295295 if isinstance (arg , at .BaseMetadata ):
296296 yield arg
You can’t perform that action at this time.
0 commit comments