From c9adca61b6a0da9f927c36188183318a0c9eee5f Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Sat, 18 Apr 2020 15:44:44 -0700 Subject: [PATCH] get_pathext may return None --- fatamorgana/records.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fatamorgana/records.py b/fatamorgana/records.py index 5e1b7dd..3b36649 100644 --- a/fatamorgana/records.py +++ b/fatamorgana/records.py @@ -1859,7 +1859,7 @@ class Path(Record): scheme_end = scheme & 0b11 scheme_start = (scheme >> 2) & 0b11 - def get_pathext(ext_scheme: int) -> pathextension_t: + def get_pathext(ext_scheme: int) -> Optional[pathextension_t]: if ext_scheme == 0: return None elif ext_scheme == 1: