Skip to content

Commit 8f2a856

Browse files
authored
chore(tooling): add mypy ignore comments and rules
1 parent 78c3cff commit 8f2a856

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ fixable = ["I", "B", "E", "F", "W", "D", "C"]
132132
ignore = ["D205", "D203", "D212", "D415", "C901", "A005", "C420"]
133133

134134
[tool.mypy]
135+
disable_error_code = ["import-untyped"]
135136
mypy_path = ["src", "$MYPY_CONFIG_FILE_DIR/stubs"]
136137
files = ["src", "tests"]
137138
exclude = [

src/ethereum_clis/ethereum_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def from_binary_path(cls, *, binary_path: Optional[Path], **kwargs) -> Any:
8989
if not binary:
9090
raise CLINotFoundInPathError(binary=binary)
9191

92-
binary = Path(binary)
92+
binary = Path(binary) # type: ignore[assignment]
9393

9494
# Group the tools by version flag, so we only have to call the tool once for all the
9595
# classes that share the same version flag

src/pytest_plugins/consume/simulators/rlp/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def buffered_blocks_rlp(blocks_rlp: List[bytes]) -> List[io.BufferedReader]:
5151
for _, block_rlp in enumerate(blocks_rlp):
5252
block_rlp_stream = io.BytesIO(block_rlp)
5353
block_rlp_files.append(io.BufferedReader(cast(io.RawIOBase, block_rlp_stream)))
54-
return block_rlp_files
54+
return block_rlp_files # type: ignore[return-value]
5555

5656

5757
@pytest.fixture(scope="function")

src/pytest_plugins/forks/forks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def __init__(
184184
else argnames
185185
)
186186
self.fn = fn
187-
self.selector = selector
187+
self.selector = selector # type: ignore[assignment]
188188
self.marks = marks
189189

190190
def process_value(

0 commit comments

Comments
 (0)