Skip to content

Commit

Permalink
Upgrade all flake8 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
jodal committed Sep 28, 2022
1 parent aa14824 commit 9288bb2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ include = ["docs", "examples", "tests"]
python = "^3.7.0"
importlib_metadata = { version = ">=1.6", python = "<3.8" }

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "^22.1"
flake8 = "^4.0.1"
flake8-black = "^0.3.2"
flake8-bugbear = "^22.1.11"
flake8-isort = "^4.0.0"
flake8-pyi = "^22.1.0"
flake8 = "^5.0.4"
flake8-black = "^0.3.3"
flake8-bugbear = "^22.9.23"
flake8-isort = "^4.2.0"
flake8-pyi = "^22.8.2"
isort = "^5.9.2"
mypy = "^0.971"
pytest = "^7.0.0"
Expand Down
4 changes: 3 additions & 1 deletion src/pykka/_future.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
from collections.abc import Callable, Generator, Iterable
from typing import Any, Generic, TypeVar

from typing_extensions import TypeAlias

from pykka._types import OptExcInfo

_T = TypeVar("_T")
Expand All @@ -9,7 +11,7 @@ J = TypeVar("J") # For when T is Iterable[J] # noqa
_M = TypeVar("_M") # For Future.map()
_R = TypeVar("_R") # For Future.reduce()

GetHookFunc = Callable[[float | None], _T]
GetHookFunc: TypeAlias = Callable[[float | None], _T]

class Future(Generic[_T]):
_get_hook: GetHookFunc | None
Expand Down
6 changes: 4 additions & 2 deletions src/pykka/_proxy.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from collections.abc import Callable, Sequence
from typing import Any, NamedTuple, TypeVar

from typing_extensions import TypeAlias

from pykka import Actor, ActorRef, Future

AttrPath = Sequence[str]
AttrPath: TypeAlias = Sequence[str]

class AttrInfo(NamedTuple):
callable: bool
Expand Down Expand Up @@ -37,7 +39,7 @@ class CallableProxy:
def __call__(self, *args: tuple[Any], **kwargs: dict[str, Any]) -> Future[Any]: ...
def defer(self, *args: tuple[Any], **kwargs: dict[str, Any]) -> None: ...

FuncType = Callable[..., Any]
FuncType: TypeAlias = Callable[..., Any]
_F = TypeVar("_F", bound=FuncType)

def traversable(obj: _F) -> _F: ...

0 comments on commit 9288bb2

Please sign in to comment.