test: drop two inert type: ignore comments

pyrightconfig.json sets enableTypeIgnoreComments to false and does not
include tests/, so neither comment suppressed anything.
This commit is contained in:
Yuneng Jiang 2026-09-19 14:22:19 -07:00
parent 5de9fc6961
commit e5398e7e30
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -427,7 +427,7 @@ def test_settings_store_truthiness_stops_at_the_first_key() -> None:
resolutions: Final[list[str]] = []
original: Final = SettingsStore._resolution_for
def counted(self: SettingsStore, key: str): # type: ignore[no-untyped-def]
def counted(self: SettingsStore, key: str):
resolutions.append(key)
return original(self, key)

View file

@ -623,7 +623,7 @@ def _real_proxy_config(file_general_settings: dict) -> "object":
proxy_config = ProxyConfig()
proxy_config._load_yaml_settings_stores({"general_settings": file_general_settings})
proxy_config.get_config_state = MagicMock( # type: ignore[method-assign]
proxy_config.get_config_state = MagicMock(
return_value={"general_settings": file_general_settings}
)
return proxy_config