From 57626f737bf708fb219494a42f9668e5b6b5c0ae Mon Sep 17 00:00:00 2001 From: Kostya Esmukov Date: Sat, 6 Jan 2024 14:49:14 +0200 Subject: [PATCH] Suppress false mypy error tests/test_metrics.py:23: error: Self? has no attribute "trust_env" [attr-defined] --- tests/test_metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_metrics.py b/tests/test_metrics.py index 47ce326..55f4042 100644 --- a/tests/test_metrics.py +++ b/tests/test_metrics.py @@ -20,7 +20,7 @@ def requests_session(): # Ignore system proxies, see https://stackoverflow.com/a/28521696 with requests.Session() as session: - session.trust_env = False + session.trust_env = False # type: ignore yield session