From 1821a80932cb1ed1becce1bed9d7c384ca047b31 Mon Sep 17 00:00:00 2001 From: BobTheBuidler Date: Tue, 4 Jun 2024 11:32:08 +0000 Subject: [PATCH] fix: tox -e lint --- brownie/test/strategies.py | 10 ++++++---- setup.cfg | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/brownie/test/strategies.py b/brownie/test/strategies.py index 3c2a59619..bb089e566 100644 --- a/brownie/test/strategies.py +++ b/brownie/test/strategies.py @@ -224,8 +224,11 @@ def _contract_deferred(name): @overload -def strategy(type_str: Literal["address"], length: Optional[int] = None, include: list = []): - ... +def strategy( + type_str: Literal["address"], + length: Optional[int] = None, + include: list = [], +) -> SearchStrategy: ... @overload @@ -233,8 +236,7 @@ def strategy( type_str: Union[EvmIntType, EvmUintType], min_value: Optional[int] = None, max_value: Optional[int] = None, -): - ... +) -> SearchStrategy: ... def strategy(type_str: str, **kwargs: Any) -> SearchStrategy: diff --git a/setup.cfg b/setup.cfg index 6fed16208..7d815cafb 100644 --- a/setup.cfg +++ b/setup.cfg @@ -8,7 +8,7 @@ current_version = 1.20.5 [flake8] exclude = tests/data/* max-line-length = 100 -ignore = E203,W503 +ignore = E203,E704,W503 [tool:isort] force_grid_wrap = 0