Skip to content

Commit

Permalink
style(pydispatch): Sort and group imports
Browse files Browse the repository at this point in the history
Uses a combination of `ruff check --output-format=concise --select I --fix 'python/grass'`, `isort --profile=black python/grass` and `black .`
  • Loading branch information
echoix committed Jul 1, 2024
1 parent ee47320 commit 45d8bb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion python/grass/pydispatch/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"""

import weakref
from grass.pydispatch import saferef, robustapply, errors

from grass.pydispatch import errors, robustapply, saferef

__author__ = "Patrick K. O'Brien <[email protected]>"
__cvsid__ = "Id: dispatcher.py,v 1.1 2010/03/30 15:45:55 mcfletch Exp"
Expand Down
2 changes: 1 addition & 1 deletion python/grass/pydispatch/robust.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Module implementing error-catching version of send (sendRobust)"""

from grass.pydispatch.dispatcher import Any, Anonymous, liveReceivers, getAllReceivers
from grass.pydispatch.dispatcher import Anonymous, Any, getAllReceivers, liveReceivers
from grass.pydispatch.robustapply import robustApply


Expand Down
4 changes: 2 additions & 2 deletions python/grass/pydispatch/saferef.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Refactored "safe reference" from dispatcher.py"""

import weakref
import traceback
import sys
import traceback
import weakref

im_func = "__func__"
im_self = "__self__"
Expand Down

0 comments on commit 45d8bb0

Please sign in to comment.