Skip to content

Commit 1b41ced

Browse files
committed
Fix alias type for python 3.9
1 parent 2edbaf3 commit 1b41ced

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

stubs/channels/METADATA.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
version = "4.*"
22
upstream_repository = "https://github.com/django/channels"
33
requires = ["django-stubs", "asgiref"]
4-
requires_python = ">=3.10"
54

65
[tool.stubtest]
76
skip = true # due to the need of django mypy plugin config, it should be skipped.

stubs/channels/channels/apps.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from django.apps import AppConfig
2-
from django.utils.functional import _StrOrPromise
32

43
class ChannelsConfig(AppConfig):
54
name: str = ...
6-
verbose_name: _StrOrPromise = ...
5+
verbose_name: str = ...

stubs/channels/channels/layers.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import asyncio
22
from re import Pattern
3-
from typing import Any, TypeAlias, overload
4-
from typing_extensions import deprecated
3+
from typing import Any, overload
4+
from typing_extensions import TypeAlias, deprecated
55

66
class ChannelLayerManager:
77
backends: dict[str, BaseChannelLayer]

stubs/channels/channels/testing/live.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections.abc import Callable
2-
from typing import Any, ClassVar, TypeAlias
2+
from typing import Any, ClassVar
3+
from typing_extensions import TypeAlias
34

45
from channels.routing import ProtocolTypeRouter
56
from channels.utils import _ChannelApplication

stubs/channels/channels/testing/websocket.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from collections.abc import Iterable
2-
from typing import Any, Literal, TypeAlias, TypedDict, overload
3-
from typing_extensions import NotRequired
2+
from typing import Any, Literal, TypedDict, overload
3+
from typing_extensions import NotRequired, TypeAlias
44

55
from asgiref.typing import ASGIVersions
66
from channels.testing.application import ApplicationCommunicator

stubs/channels/channels/utils.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from collections.abc import Awaitable, Callable
2-
from typing import Any, Protocol, TypeAlias
2+
from typing import Any, Protocol
3+
from typing_extensions import TypeAlias
34

45
from asgiref.typing import ASGIApplication, ASGIReceiveCallable
56

0 commit comments

Comments
 (0)