Apply suggestions from code review

This commit is contained in:
Marek Wolan
2023-09-04 16:11:47 +00:00
parent d55fd835c7
commit 289f818266

View File

@@ -211,7 +211,7 @@ class FileSystem(SimComponent):
if file is not None:
return file
def get_folder_by_name(self, folder_name: str) -> Union[FileSystemFolder, None]:
def get_folder_by_name(self, folder_name: str) -> Optional[FileSystemFolder]:
"""
Returns a the first folder with a matching name.