Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
style: fix pyright error
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Aug 28, 2021
1 parent dd46632 commit baae540
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion auto_derby/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ def _parse_training_levels(spec: Text) -> Dict[int, int]:
return ret


def _default_on_single_mode_crane_game(ctx: single_mode.Context) -> None:
pass


class config:
LOG_PATH = os.getenv("AUTO_DERBY_LOG_PATH", "auto_derby.log")
PLUGINS = tuple(i for i in os.getenv("AUTO_DERBY_PLUGINS", "").split(",") if i)
Expand Down Expand Up @@ -90,7 +94,9 @@ class config:

on_single_mode_live = sc.g.on_winning_live
on_single_mode_command = sc.g.on_command
on_single_mode_crane_game: Callable[[single_mode.Context], None] = lambda *_: None
on_single_mode_crane_game: Callable[
[single_mode.Context], None
] = _default_on_single_mode_crane_game

terminal_pause_sound_path = os.path.expandvars(
"${WinDir}/Media/Windows Background.wav"
Expand Down

0 comments on commit baae540

Please sign in to comment.