Skip to content

Commit 96103ff

Browse files
committed
Fix formatting in engine/core/__init__.py
1 parent e9d2079 commit 96103ff

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

engine/core/__init__.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"""
55
Core engine systems and base components.
66
"""
7+
78
from pathlib import Path
89

910
from importlib.machinery import ModuleSpec
@@ -429,12 +430,7 @@ def __init__(
429430
GP_BASE_PATH: str,
430431
cursor_visible: bool = True,
431432
fullscreen: bool = False,
432-
icon_path: Optional[
433-
Union[
434-
str,
435-
Path
436-
]
437-
] = None,
433+
icon_path: Optional[Union[str, Path]] = None,
438434
IS_EDITOR: bool = False,
439435
) -> None:
440436
"""
@@ -575,9 +571,7 @@ def set_icon(self, icon_path: Union[str, Path]) -> None:
575571
"""
576572

577573
try:
578-
image: pygame.Surface = pygame.image.load(
579-
os.path.join(self.GP_BASE_PATH, icon_path)
580-
)
574+
image: pygame.Surface = pygame.image.load(os.path.join(self.GP_BASE_PATH, icon_path))
581575
image = image.convert_alpha()
582576
pygame.display.set_icon(image)
583577
except (pygame.error, FileNotFoundError) as e:

0 commit comments

Comments
 (0)