Skip to content

Commit

Permalink
mypy: Ignore errors about injected print() into http.client module
Browse files Browse the repository at this point in the history
  • Loading branch information
dmach committed Oct 17, 2023
1 parent df39d9d commit 21e78e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def http_request(method: str, url: str, headers=None, data=None, file=None, retr

if int(conf.config['http_debug']):
# use the hacked print() for consistency
http.client.print(40 * '-')
http.client.print(method, url)
http.client.print(40 * '-') # type: ignore[attr-defined]
http.client.print(method, url) # type: ignore[attr-defined]

Check warning on line 345 in osc/connection.py

View check run for this annotation

Codecov / codecov/patch

osc/connection.py#L344-L345

Added lines #L344 - L345 were not covered by tests

try:
response = pool.urlopen(
Expand Down

0 comments on commit 21e78e0

Please sign in to comment.