Skip to content

Commit 28d0b18

Browse files
ignore some type checks
1 parent 2d8a5b3 commit 28d0b18

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

things/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def checklist_items(uuid, **kwargs):
416416
list of dict
417417
Representing checklist items. Or [] if none found.
418418
"""
419-
return tasks(uuid=uuid, type="to-do", **kwargs).get("checklist", [])
419+
return tasks(uuid=uuid, type="to-do", **kwargs).get("checklist", []) # type: ignore
420420

421421

422422
# Filter by collections in the Things app sidebar.

things/database.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ def get_tasks(self, # pylint: disable=R0914
135135
start = start and start.title()
136136

137137
# Validation
138-
validate("type", type, [None] + list(TYPE_TO_FILTER))
139-
validate("status", status, [None] + list(STATUS_TO_FILTER))
140-
validate("start", start, [None] + list(START_TO_FILTER))
138+
validate("type", type, [None] + list(TYPE_TO_FILTER)) # type: ignore
139+
validate("status", status, [None] + list(STATUS_TO_FILTER)) # type: ignore
140+
validate("start", start, [None] + list(START_TO_FILTER)) # type: ignore
141141
validate("index", index, list(INDICES))
142142

143143
if tag is not None:

0 commit comments

Comments
 (0)