Skip to content

Commit f032d00

Browse files
committed
Additional coverage pattern
1 parent 8a67dc7 commit f032d00

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

hypothesis-python/.coveragerc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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\.]+"\)

hypothesis-python/src/hypothesis/strategies/_internal/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def is_annotated_type(thing):
275275

276276

277277
def 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

292292
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"):
294294
for arg in args:
295295
if isinstance(arg, at.BaseMetadata):
296296
yield arg

0 commit comments

Comments
 (0)