Fix more pre-existing ty diagnostics in test files

Continues narrowing SamsungEntityDescription accesses to the correct
subclass and asserting Optional write_fn/match_fn/exists_fn fields are
set before calling them, per the pattern established in the previous
commit.
This commit is contained in:
Marc Billow committed 2026-08-03 00:03:08 +00:00
1 parent daf7e3787f
commit 07061c734d
18 files changed
+430 -122

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@ def test_capability_defaults():
def test_capability_is_frozen():
c = Capability(href="/kidslock/vs/0", entities=())
try:
c.href = "/other/vs/0"
setattr(c, "href", "/other/vs/0")
except Exception:
return
raise AssertionError("expected frozen dataclass")