From 77b24a95535bc120c4ab9a238255216df351d551 Mon Sep 17 00:00:00 2001 From: pnuckowski Date: Thu, 12 Dec 2024 00:05:44 +0100 Subject: [PATCH] fix: flake8 --- aioresponses/core.py | 3 +-- requirements-dev.txt | 2 +- setup.cfg | 1 + 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aioresponses/core.py b/aioresponses/core.py index 48426b4..566e678 100644 --- a/aioresponses/core.py +++ b/aioresponses/core.py @@ -40,7 +40,6 @@ RequestInfo, AIOHTTP_VERSION, ) - _FuncT = TypeVar("_FuncT", bound=Callable[..., Any]) @@ -224,7 +223,7 @@ def __repr__(self) -> str: class aioresponses(object): """Mock aiohttp requests made by ClientSession.""" _matches = None # type: Dict[str, RequestMatch] - _responses = None # type: List[ClientResponse] + _responses: List[ClientResponse] = None requests = None # type: Dict def __init__(self, **kwargs: Any): diff --git a/requirements-dev.txt b/requirements-dev.txt index bb31c52..881b8bc 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,6 +1,6 @@ pip wheel -flake8==3.8.3 +flake8==7.1.1 tox==3.19.0 coverage==5.2.1 Sphinx==1.5.6 diff --git a/setup.cfg b/setup.cfg index 0b0fe1d..9db058d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -35,6 +35,7 @@ universal = 1 [flake8] exclude = docs +max-line-length = 120 [tool:pytest] testpaths = tests