mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-30 13:10:47 +00:00
additional typehint
This commit is contained in:
parent
faf698eb71
commit
955db1c3eb
1 changed files with 3 additions and 1 deletions
|
|
@ -69,7 +69,9 @@ def get_core_file_type(
|
||||||
|
|
||||||
|
|
||||||
def get_file_type_string(filename: str) -> Optional[str]:
|
def get_file_type_string(filename: str) -> Optional[str]:
|
||||||
core_file = get_core_file_type(filename)
|
core_file: Optional[CoreFiles] = get_core_file_type(filename)
|
||||||
|
|
||||||
if core_file is None:
|
if core_file is None:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
return _CORE_FILE_TO_FILE_TYPE[core_file]
|
return _CORE_FILE_TO_FILE_TYPE[core_file]
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue