mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-29 11:12:02 +01:00
Fix document360 mypy issue
This commit is contained in:
parent
60d5abae3c
commit
9211334597
@ -1,7 +1,4 @@
|
||||
from typing import List
|
||||
|
||||
|
||||
def flatten_child_categories(category) -> List[dict]:
|
||||
def flatten_child_categories(category: dict) -> list[dict]:
|
||||
if not category["child_categories"]:
|
||||
return [category]
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user