Skip to content

Commit 1f315a6

Browse files
Ulthrandnicolodi
authored andcommitted
typing: Fix type annotation for identify() return value
1 parent 5dc2dc0 commit 1f315a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

beangulp/identify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
__copyright__ = "Copyright (C) 2016 Martin Blais"
22
__license__ = "GNU GPLv2"
33

4-
from typing import List
4+
from typing import List, Optional
55
from beangulp.exceptions import Error
66
from beangulp.importer import Importer
77

@@ -12,7 +12,7 @@
1212
FILE_TOO_LARGE_THRESHOLD = 8 * 1024 * 1024
1313

1414

15-
def identify(importers: List[Importer], filepath: str):
15+
def identify(importers: List[Importer], filepath: str) -> Optional[Importer]:
1616
"""Identify the correct importer to handle a document.
1717
1818
Args:

0 commit comments

Comments
 (0)