We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5dc2dc0 commit 1f315a6Copy full SHA for 1f315a6
beangulp/identify.py
@@ -1,7 +1,7 @@
1
__copyright__ = "Copyright (C) 2016 Martin Blais"
2
__license__ = "GNU GPLv2"
3
4
-from typing import List
+from typing import List, Optional
5
from beangulp.exceptions import Error
6
from beangulp.importer import Importer
7
@@ -12,7 +12,7 @@
12
FILE_TOO_LARGE_THRESHOLD = 8 * 1024 * 1024
13
14
15
-def identify(importers: List[Importer], filepath: str):
+def identify(importers: List[Importer], filepath: str) -> Optional[Importer]:
16
"""Identify the correct importer to handle a document.
17
18
Args:
0 commit comments