Skip to content

Commit 87046a8

Browse files
committed
Fix mypy warnings
1 parent 29c06e6 commit 87046a8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_network_isolation.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Tests for network isolation in solc operations."""
22

33
import subprocess
4+
from typing import Any
45
from unittest.mock import Mock, patch
56

67
import requests
@@ -9,7 +10,9 @@
910
class TestNetworkIsolation:
1011
"""Test that solc operations don't make unnecessary network requests."""
1112

12-
def test_solc_version_no_network_calls_after_install(self, isolated_solc_data, monkeypatch):
13+
def test_solc_version_no_network_calls_after_install(
14+
self, isolated_solc_data: Any, monkeypatch: Any
15+
) -> None:
1316
"""
1417
Verify that executing solc doesn't make network requests
1518
in the Python code path from service call to subprocess.run().
@@ -30,7 +33,7 @@ def test_solc_version_no_network_calls_after_install(self, isolated_solc_data, m
3033
# Phase 2: Track network calls and mock subprocess
3134
network_calls = []
3235

33-
def track_network_get(self, url, *args, **kwargs):
36+
def track_network_get(self: Any, url: str, *args: Any, **kwargs: Any) -> None:
3437
"""Track all network calls and fail immediately."""
3538
network_calls.append(url)
3639
raise RuntimeError(f"Unexpected network call to: {url}")

0 commit comments

Comments
 (0)