Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions beangulp/identify.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
__copyright__ = "Copyright (C) 2016 Martin Blais"
__license__ = "GNU GPLv2"

from typing import List
from typing import List, Optional
from beangulp.exceptions import Error
from beangulp.importer import Importer

Expand All @@ -12,7 +12,7 @@
FILE_TOO_LARGE_THRESHOLD = 8 * 1024 * 1024


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

Args:
Expand Down