Skip to content

Commit

Permalink
Minor import refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfioravanti committed Aug 11, 2024
1 parent aea17d7 commit 36e97d7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 8 deletions.
5 changes: 4 additions & 1 deletion plover_platform_specific_translation/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
A package dealing with:
- loading and saving config containing platform-specific outline values
"""
from .actions import load, save
from .actions import (
load,
save
)

__all__ = [
"load",
Expand Down
5 changes: 4 additions & 1 deletion plover_platform_specific_translation/config/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"""
import json
from pathlib import Path
from typing import Any, Tuple
from typing import (
Any,
Tuple
)


def load(filepath: Path) -> dict[str, Any]:
Expand Down
13 changes: 9 additions & 4 deletions plover_platform_specific_translation/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@
from typing import Tuple

from plover.engine import StenoEngine
from plover.formatting import _Action, _Context
from plover.formatting import (
_Action,
_Context
)
from plover.machine.base import STATE_RUNNING
from plover.oslayer.config import CONFIG_DIR
from plover.registry import registry

from . import config
from . import platform
from . import translation
from . import (
config,
platform,
translation
)


_CONFIG_FILEPATH: Path = Path(CONFIG_DIR) / "platform_specific_translation.json"
Expand Down
6 changes: 5 additions & 1 deletion plover_platform_specific_translation/translation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
A package dealing with:
- resolving the correct translation from a platform-specific outline value
"""
from .resolver import COMBO, COMMAND, resolve
from .resolver import (
COMBO,
COMMAND,
resolve
)

__all__ = [
"COMBO",
Expand Down
5 changes: 4 additions & 1 deletion plover_platform_specific_translation/translation/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
translations.
"""
import re
from typing import Pattern, Tuple
from typing import (
Pattern,
Tuple
)


COMBO = "combo"
Expand Down

0 comments on commit 36e97d7

Please sign in to comment.