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:
18 files changed
+430
-122
No files matched your search
@@ -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")
|
||||
Reference in new issue
Block a user