From 272a0b374542f336a45d4b8effd7784e798f94f3 Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Thu, 25 Jun 2026 11:58:48 +0200 Subject: [PATCH] Remove unnecessary mypy comments --- tests/test_core_downloader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_core_downloader.py b/tests/test_core_downloader.py index 85a61ec60..fdd5edc27 100644 --- a/tests/test_core_downloader.py +++ b/tests/test_core_downloader.py @@ -197,8 +197,8 @@ class TestContextFactoryCiphers(TestContextFactoryBase): assert factory.tls_ciphers is not None # OpenSSLAcceptableCiphers has no __eq__, so compare the parsed ciphers. assert ( - factory.tls_ciphers._ciphers # type: ignore[attr-defined] - == AcceptableCiphers.fromOpenSSLCipherString("DEFAULT")._ciphers # type: ignore[attr-defined] + factory.tls_ciphers._ciphers + == AcceptableCiphers.fromOpenSSLCipherString("DEFAULT")._ciphers ) assert factory._get_cert_options_kwargs()["acceptableCiphers"] is not None @@ -209,8 +209,8 @@ class TestContextFactoryCiphers(TestContextFactoryBase): factory = build_from_crawler(_ScrapyClientContextFactory, crawler) assert factory.tls_ciphers is not None assert ( - factory.tls_ciphers._ciphers # type: ignore[attr-defined] - == AcceptableCiphers.fromOpenSSLCipherString("CAMELLIA256-SHA")._ciphers # type: ignore[attr-defined] + factory.tls_ciphers._ciphers + == AcceptableCiphers.fromOpenSSLCipherString("CAMELLIA256-SHA")._ciphers ) @coroutine_test