Skip to content

Commit 21e78e0

Browse files
committed
mypy: Ignore errors about injected print() into http.client module
1 parent df39d9d commit 21e78e0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osc/connection.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ def http_request(method: str, url: str, headers=None, data=None, file=None, retr
341341

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

347347
try:
348348
response = pool.urlopen(

0 commit comments

Comments
 (0)