Skip to content

Commit 1337fa2

Browse files
authored
fix: πŸ› Deprecated typing imports
1 parent a7b1653 commit 1337fa2

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

β€Žcq/_core/dispatcher/base.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from abc import ABC, abstractmethod
3-
from collections.abc import Awaitable
4-
from typing import Callable, Protocol, Self, runtime_checkable
3+
from collections.abc import Awaitable, Callable
4+
from typing import Protocol, Self, runtime_checkable
55

66
from cq._core.middleware import Middleware, MiddlewareGroup
77

β€Žcq/_core/dispatcher/pipe.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
from collections.abc import Callable
1+
from collections.abc import Awaitable, Callable
22
from dataclasses import dataclass, field
3-
from typing import Any, Awaitable, Self
3+
from typing import Any, Self
44

55
from cq._core.dispatcher.base import BaseDispatcher, Dispatcher
66

β€Žtests/helpers/history.pyβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
from collections.abc import Mapping
12
from enum import IntEnum
2-
from typing import Any, Mapping, NamedTuple
3+
from typing import Any, NamedTuple
34

45
from cq import MiddlewareResult
56

0 commit comments

Comments
Β (0)