Skip to content

Commit 4212e14

Browse files
committed
Format using isort
1 parent 2e64676 commit 4212e14

File tree

7 files changed

+19
-28
lines changed

7 files changed

+19
-28
lines changed

pyflowlauncher/__init__.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1-
import os
1+
import importlib.metadata
22
import logging
3+
import os
34

45
from .plugin import Plugin, ResultResponse
5-
from .result import Result, JsonRPCAction, send_results
6-
7-
8-
import importlib.metadata
9-
6+
from .result import JsonRPCAction, Result, send_results
107

118
log_level = os.environ.get("FLOW_LAUNCHER_API_LOG_LEVEL", "INFO")
129

pyflowlauncher/api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from typing import Optional
2+
23
from .result import JsonRPCAction
34

45
NAME_SPACE = 'Flow.Launcher'

pyflowlauncher/icons.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
import os
21
import logging
3-
2+
import os
43
from pathlib import Path
54
from typing import Dict, Optional
65

7-
86
_logger = logging.getLogger(__name__)
97

108
IMAGE_DIR = "Images"

pyflowlauncher/jsonrpc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from __future__ import annotations
2+
23
import json
34
import sys
45
from typing import Any, Mapping
56

67
if sys.version_info < (3, 11):
7-
from typing_extensions import TypedDict, NotRequired
8+
from typing_extensions import NotRequired, TypedDict
89
else:
9-
from typing import TypedDict, NotRequired
10+
from typing import NotRequired, TypedDict
1011

1112

1213
class JsonRPCRequest(TypedDict):

pyflowlauncher/method.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
from __future__ import annotations
2-
from typing import Any, Dict, Optional
2+
33
from abc import ABC, abstractmethod
4+
from typing import Any, Dict, Optional
45

5-
from .result import Result, JsonRPCAction, ResultResponse, send_results
6+
from .result import JsonRPCAction, Result, ResultResponse, send_results
67
from .shared import logger
78

89

pyflowlauncher/plugin.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from __future__ import annotations
2-
from typing import Any, Iterable, Callable, Union
2+
33
from functools import wraps
4+
from typing import Any, Callable, Iterable, Union
45

56
from pyflowlauncher.shared import logger
67

7-
from .result import JsonRPCAction, ResultResponse
8-
from .jsonrpc import JsonRPCClient
98
from .event import EventHandler
10-
9+
from .jsonrpc import JsonRPCClient
10+
from .result import JsonRPCAction, ResultResponse
1111

1212
Method = Callable[..., Union[ResultResponse, JsonRPCAction]]
1313

pyflowlauncher/result.py

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,14 @@
11
from __future__ import annotations
2+
23
import sys
34
from dataclasses import dataclass
45
from pathlib import Path
5-
from typing import (
6-
TYPE_CHECKING,
7-
Any,
8-
Iterable,
9-
Optional,
10-
Union,
11-
Dict,
12-
List
13-
)
6+
from typing import TYPE_CHECKING, Any, Dict, Iterable, List, Optional, Union
147

158
if sys.version_info < (3, 11):
16-
from typing_extensions import TypedDict, NotRequired
9+
from typing_extensions import NotRequired, TypedDict
1710
else:
18-
from typing import TypedDict, NotRequired
11+
from typing import NotRequired, TypedDict
1912

2013

2114
if TYPE_CHECKING:

0 commit comments

Comments
 (0)