Skip to content

Commit

Permalink
re-format
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Jan 22, 2025
1 parent c9e4f0f commit 3fccee2
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 13 deletions.
4 changes: 1 addition & 3 deletions pyglossary/plugins/quickdic6/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@
__all__ = ["Writer"]


_defaultNormalizerRulesDE = (
":: Lower; 'ae' > 'ä'; 'oe' > 'ö'; 'ue' > 'ü'; 'ß' > 'ss'; "
)
_defaultNormalizerRulesDE = ":: Lower; 'ae' > 'ä'; 'oe' > 'ö'; 'ue' > 'ü'; 'ß' > 'ss'; "
_defaultNormalizerRules = (
":: Any-Latin; ' ' > ; :: Lower; :: NFD; :: [:Nonspacing Mark:] Remove; :: NFC ;"
)
Expand Down
4 changes: 2 additions & 2 deletions pyglossary/ui/ui_gtk4/log_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
from gi.repository import Gdk as gdk
from gi.repository import Gtk as gtk

# from gi.repository import GdkPixbuf

log = logging.getLogger("pyglossary")


class MainWinType(Protocol):
def status(self, msg: str) -> None: ...


class GtkTextviewLogHandler(logging.Handler):
def __init__(
self,
Expand Down
1 change: 0 additions & 1 deletion pyglossary/ui/ui_gtk4/sort_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
# log = logging.getLogger("pyglossary")



sortKeyNameByDesc = {_sk.desc: _sk.name for _sk in namedSortKeyList}
sortKeyNames = [_sk.name for _sk in namedSortKeyList]

Expand Down
8 changes: 2 additions & 6 deletions pyglossary/ui/ui_gtk4/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,10 @@
from gi.repository import Gio as gio
from gi.repository import Gtk as gtk

from pyglossary.ui.base import (
UIBase,
)
from pyglossary.ui.base import UIBase

from .mainwin import MainWindow
from .utils import ( # noqa: E402
gtk_window_iteration_loop,
)
from .utils import gtk_window_iteration_loop

log = logging.getLogger("pyglossary")

Expand Down
1 change: 1 addition & 0 deletions pyglossary/ui/ui_gtk4/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@

log = logging.getLogger("pyglossary")


def getWorkAreaSize(_w: Any) -> tuple[int, int]:
display = gdk.Display.get_default()
# monitor = display.get_monitor_at_surface(w.get_surface())
Expand Down
2 changes: 1 addition & 1 deletion pyglossary/ui/ui_web/websocket_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
from typing import TYPE_CHECKING, Any, Protocol

if TYPE_CHECKING:

import logging
from collections.abc import Callable

class ServerType(Protocol):
def send_message_to_all(self, msg: str | dict) -> None: ...
def shutdown(self) -> None: ...
Expand Down

0 comments on commit 3fccee2

Please sign in to comment.