Skip to content

Commit c84acad

Browse files
committed
Add optional
1 parent 1a15228 commit c84acad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_view_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Quiz(db.Model):
7373
item: Quiz = Quiz()
7474
db.session.add(item)
7575
db.session.commit()
76-
result: Quiz = db.get_or_404(Quiz, 1)
76+
result: t.Optional[Quiz] = db.get_or_404(Quiz, 1)
7777
assert result is item
7878
with pytest.raises(NotFound):
7979
assert db.get_or_404(Quiz, 2)

0 commit comments

Comments
 (0)