Skip to content

Commit ea2f0d3

Browse files
committed
fix(ImportHelper): fix check_file_type return type hint
1 parent abe80a1 commit ea2f0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnityPy/helpers/ImportHelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def find_all_files(directory: str, search_str: str) -> List[str]:
4242

4343
def check_file_type(
4444
input_: FileSourceType,
45-
) -> Tuple[Optional[FileType], Optional[EndianBinaryReader]]:
45+
) -> Tuple[FileType, EndianBinaryReader]:
4646
if isinstance(input_, str) and os.path.isfile(input_):
4747
reader = EndianBinaryReader(open(input_, "rb"))
4848
elif isinstance(input_, EndianBinaryReader):

0 commit comments

Comments
 (0)