From c21c25379a7e5e093aca35da7a505c8eb431e40d Mon Sep 17 00:00:00 2001 From: Charlie Date: Tue, 30 Sep 2025 20:07:45 -0400 Subject: [PATCH] typing: Fix type annotation for identify() return value --- beangulp/identify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beangulp/identify.py b/beangulp/identify.py index f3029b8..3d2bcdb 100644 --- a/beangulp/identify.py +++ b/beangulp/identify.py @@ -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 @@ -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: