Skip to content

Commit

Permalink
ci: Fix mypy ignore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 11, 2024
1 parent 80d982c commit 282d212
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_options.py
Expand Up @@ -30,21 +30,21 @@ def test_get_method(self) -> None:
assert options.get("0") == 1

def test_set_method(self) -> None:
self.api.set_global_options = lambda x: True # type: ignore[method-assign]
self.api.set_global_options = lambda x: True # type: ignore[assignment]
options = Options(self.api, {})
assert options.set("0", 0)
assert options.get("0") == "0"

def test_set_method_failure(self) -> None:
self.api.set_global_options = lambda x: False # type: ignore[method-assign]
self.api.set_global_options = lambda x: False # type: ignore[assignment]
options = Options(self.api, {"0": "0"})
assert not options.set("0", "1")
assert not options.set("1", "1")
assert options.get("0") == "0"
assert options.get("1") is None

def test_set_method_for_download(self) -> None:
self.api.set_options = lambda x, y: [True] # type: ignore[method-assign]
self.api.set_options = lambda x, y: [True] # type: ignore[assignment]
options = Options(self.api, {}, Download(self.api, {}))
assert options.set("0", 0)
assert options.get("0") == "0"
Expand All @@ -54,7 +54,7 @@ def test_set_method_for_download(self) -> None:
class TestOptionsProperties:
def setup_method(self) -> None:
self.api = API()
self.api.set_global_options = lambda x: True # type: ignore[method-assign]
self.api.set_global_options = lambda x: True # type: ignore[assignment]
self.options = Options(self.api, {})

def test_all_proxy_properties(self) -> None:
Expand Down

0 comments on commit 282d212

Please sign in to comment.