Skip to content

Commit 278766c

Browse files
authored
Use coverage exclusion comment marker
1 parent cffc78b commit 278766c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

httpx/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def main() -> None: # type: ignore
104104
if not __name.startswith("__"):
105105
try:
106106
setattr(__locals[__name], "__module__", "httpx") # noqa
107-
except AttributeError: # noqa
107+
except AttributeError: # pragma: no cover
108108
# typing.Union instances are immutable in Python 3.14+,
109109
# so don't fail if writing to "__module__" fails
110-
continue # noqa
110+
continue # pragma: no cover

0 commit comments

Comments
 (0)