From 21e78e0d6698ee23411f1785f612dc4bf248965f Mon Sep 17 00:00:00 2001 From: Daniel Mach Date: Tue, 17 Oct 2023 13:58:04 +0200 Subject: [PATCH] mypy: Ignore errors about injected print() into http.client module --- osc/connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osc/connection.py b/osc/connection.py index 732f9d8664..58ba77b381 100644 --- a/osc/connection.py +++ b/osc/connection.py @@ -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] try: response = pool.urlopen(