Skip to content

Commit e9040a2

Browse files
committed
Fix ty error on assignment to an undeclared Wrapper attribute
ty 0.0.64 takes the `value: str` annotation of `Wrapper.__setattr__` into account, and so reports assigning 0 to an attribute as `invalid-assignment` instead of `unresolved-attribute`. Update the suppression accordingly, which also silences the resulting unused-ignore-comment warning.
1 parent dd4443d commit e9040a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bioblend/_tests/TestGalaxyObjects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_initialize(self):
178178
with pytest.raises(AttributeError):
179179
_ = self.w.foo # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
180180
with pytest.raises(AttributeError):
181-
self.w.foo = 0 # type: ignore[assignment] # ty: ignore[unresolved-attribute]
181+
self.w.foo = 0 # type: ignore[assignment] # ty: ignore[invalid-assignment]
182182

183183
def test_taint(self):
184184
assert not self.w.is_modified

0 commit comments

Comments
 (0)