get_pathext may return None

This commit is contained in:
Jan Petykiewicz 2020-04-18 15:44:44 -07:00
parent 1a259a1c19
commit c9adca61b6

View File

@ -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: