forked from jan/fatamorgana
get_pathext may return None
This commit is contained in:
parent
1a259a1c19
commit
c9adca61b6
@ -1859,7 +1859,7 @@ class Path(Record):
|
|||||||
scheme_end = scheme & 0b11
|
scheme_end = scheme & 0b11
|
||||||
scheme_start = (scheme >> 2) & 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:
|
if ext_scheme == 0:
|
||||||
return None
|
return None
|
||||||
elif ext_scheme == 1:
|
elif ext_scheme == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user