Skip to content

Commit 65de049

Browse files
jorwoodsjacalata
authored andcommitted
fix: mypy issues (#1667)
1 parent eca4d84 commit 65de049

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_custom_view.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,11 @@ def test_update(server: TSC.Server) -> None:
141141
the_custom_view = TSC.CustomViewItem("1d0304cd-3796-429f-b815-7258370b9b74", name="Best test ever")
142142
the_custom_view._id = "1f951daf-4061-451a-9df1-69a8062664f2"
143143
the_custom_view.owner = TSC.UserItem()
144+
assert the_custom_view.owner is not None # for mypy
144145
the_custom_view.owner.id = "dd2239f6-ddf1-4107-981a-4cf94e415794"
145146
the_custom_view = server.custom_views.update(the_custom_view)
146147

148+
assert isinstance(the_custom_view, TSC.CustomViewItem)
147149
assert "1f951daf-4061-451a-9df1-69a8062664f2" == the_custom_view.id
148150
if the_custom_view.owner:
149151
assert "dd2239f6-ddf1-4107-981a-4cf94e415794" == the_custom_view.owner.id

0 commit comments

Comments
 (0)