@@ -1910,7 +1910,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
19101910 async def test_sed_node (self , monkeypatch : pytest .MonkeyPatch ) -> None : # noqa: PLR0915
19111911 """Testing properties of SED."""
19121912
1913- def fake_cache (dummy : object , setting : str ) -> str | None : # noqa: PLR0911
1913+ def fake_cache (dummy : object , setting : str ) -> str | bool | None : # noqa: PLR0911
19141914 """Fake cache retrieval."""
19151915 if setting == pw_node .CACHE_FIRMWARE :
19161916 return "2011-6-27-8-55-44"
@@ -2106,7 +2106,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
21062106 async def test_scan_node (self , monkeypatch : pytest .MonkeyPatch ) -> None : # noqa: PLR0915
21072107 """Testing properties of scan."""
21082108
2109- def fake_cache (dummy : object , setting : str ) -> str | None : # noqa: PLR0911 PLR0912
2109+ def fake_cache (dummy : object , setting : str ) -> str | bool | None : # noqa: PLR0911 PLR0912
21102110 """Fake cache retrieval."""
21112111 if setting == pw_node .CACHE_FIRMWARE :
21122112 return "2011-6-27-8-55-44"
@@ -2308,7 +2308,7 @@ async def load_callback(event: pw_api.NodeEvent, mac: str) -> None: # type: ign
23082308 async def test_switch_node (self , monkeypatch : pytest .MonkeyPatch ) -> None :
23092309 """Testing properties of switch."""
23102310
2311- def fake_cache (dummy : object , setting : str ) -> str | None : # noqa: PLR0911
2311+ def fake_cache (dummy : object , setting : str ) -> str | bool | None : # noqa: PLR0911
23122312 """Fake cache retrieval."""
23132313 if setting == pw_node .CACHE_FIRMWARE :
23142314 return "2011-5-13-7-26-54"
@@ -2411,7 +2411,7 @@ async def test_node_discovery_and_load( # noqa: PLR0915
24112411 ) -> None :
24122412 """Testing discovery of nodes."""
24132413
2414- def fake_cache (dummy : object , setting : str ) -> str | None : # noqa: PLR0911
2414+ def fake_cache (dummy : object , setting : str ) -> str | bool | None : # noqa: PLR0911
24152415 """Fake cache retrieval."""
24162416 if setting == pw_node .CACHE_FIRMWARE :
24172417 return "2011-5-13-7-26-54"
0 commit comments