Skip to content

Commit 1de4ad7

Browse files
authored
style: Fix linting errors (#37)
1 parent a9516b7 commit 1de4ad7

File tree

4 files changed

+19
-29
lines changed

4 files changed

+19
-29
lines changed

src/pfun/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .maybe import Just, Maybe, Nothing # noqa
1212

1313
try:
14-
from . import http, sql, hypothesis_strategies # noqa
14+
from . import http, hypothesis_strategies, sql # noqa
1515
except ImportError:
1616
pass
1717

src/pfun/effect.pyi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1+
import asyncio
2+
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
3+
from contextlib import AsyncExitStack
14
from datetime import timedelta
25
from typing import (Any, AsyncContextManager, Awaitable, Callable, Generic,
3-
Iterable, NoReturn, Optional, Tuple, Type, TypeVar, Union,
4-
overload, Iterator)
6+
Iterable, Iterator, NoReturn, Optional, Tuple, Type,
7+
TypeVar, Union, overload)
8+
59
from typing_extensions import ParamSpec
6-
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
7-
from contextlib import AsyncExitStack
8-
import asyncio
910

11+
from pfun import Intersection
12+
from pfun.clock import HasClock
13+
from pfun.either import Either, Left, Right
1014
from pfun.functions import curry
1115
from pfun.immutable import Immutable
12-
from pfun.either import Either, Left, Right
1316
from pfun.monad import Monad
14-
from pfun.clock import HasClock
15-
from pfun import Intersection
16-
1717

1818
R = TypeVar('R', contravariant=True)
1919
E = TypeVar('E', covariant=True)

src/pfun/effect.pyx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@ Attributes:
66
Try (TypeAlias): Type-alias for `Effect[object, TypeVar('E'), TypeVar('A')]`.
77
Depends (TypeAlias): Type-alias for `Effect[TypeVar('R'), NoReturn, TypeVar('A')]`.
88
"""
9-
from typing import Generic, TypeVar, NoReturn
10-
from typing_extensions import get_origin
119
import asyncio
10+
import inspect
1211
from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor
1312
from contextlib import AsyncExitStack
1413
from functools import wraps
15-
import inspect
14+
from typing import Generic, NoReturn, TypeVar
1615

1716
import dill
18-
from typing_extensions import Protocol, runtime_checkable
17+
from typing_extensions import Protocol, get_origin, runtime_checkable
1918

20-
from .either import Right, Left
19+
from .either import Left, Right
2120
from .functions import curry
2221

2322

src/pfun/hypothesis_strategies.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,11 @@
66
trampoline)
77

88
try:
9-
from hypothesis.strategies import (
10-
booleans,
11-
builds,
12-
composite,
13-
dictionaries,
14-
floats,
15-
integers,
16-
just,
17-
lists as lists_,
18-
one_of,
19-
recursive,
20-
text,
21-
SearchStrategy
22-
)
9+
from hypothesis.strategies import (SearchStrategy, booleans, builds,
10+
composite, dictionaries, floats,
11+
integers, just)
12+
from hypothesis.strategies import lists as lists_
13+
from hypothesis.strategies import one_of, recursive, text
2314
except ImportError:
2415
raise ImportError(
2516
'Could not import hypothesis. To use pfun.hypothesis_strategies, '

0 commit comments

Comments
 (0)