Skip to content

Commit 2b8d7aa

Browse files
Don't run mypy on PyPy (#139)
* Don't run mypy on PyPy * pre-commit * Remove pypy3.10
1 parent f1b131c commit 2b8d7aa

5 files changed

Lines changed: 9 additions & 10 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ jobs:
3535
matrix:
3636
os: [ubuntu-latest, windows-latest, macos-latest]
3737
python-version:
38-
- '3.9'
3938
- '3.10'
4039
- '3.11'
4140
- '3.12'
4241
- '3.13'
43-
- 'pypy3.9'
44-
- 'pypy3.10'
42+
- '3.14'
4543
- 'pypy3.11'
4644
defaults:
4745
run:
@@ -60,6 +58,7 @@ jobs:
6058
pip install --group test .
6159
cd tests; npm install
6260
- name: Check types
61+
if: ${{ !((matrix.python-version == 'pypy3.10') || (matrix.python-version == 'pypy3.11')) }}
6362
run: |
6463
mypy src tests
6564
- name: Run tests

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ version = "0.16.0"
88
description = "WebSocket connector for pycrdt"
99
license = { file = "LICENSE" }
1010
readme = "README.md"
11-
requires-python = ">=3.9"
11+
requires-python = ">=3.10"
1212
authors = [
1313
{ name = "David Brochart", email = "david.brochart@gmail.com" },
1414
]
@@ -21,11 +21,11 @@ classifiers = [
2121
"Intended Audience :: Developers",
2222
"License :: OSI Approved :: MIT License",
2323
"Programming Language :: Python",
24-
"Programming Language :: Python :: 3.9",
2524
"Programming Language :: Python :: 3.10",
2625
"Programming Language :: Python :: 3.11",
2726
"Programming Language :: Python :: 3.12",
2827
"Programming Language :: Python :: 3.13",
28+
"Programming Language :: Python :: 3.14",
2929
]
3030
dependencies = [
3131
"anyio >=3.6.2,<5",

src/pycrdt/websocket/asgi_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from __future__ import annotations
22

3-
from collections.abc import Awaitable
3+
from collections.abc import Awaitable, Callable
44
from inspect import isawaitable
5-
from typing import Any, Callable
5+
from typing import Any
66

77
from .websocket_server import WebsocketServer
88

src/pycrdt/websocket/websocket_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from __future__ import annotations
22

3+
from collections.abc import Callable
34
from contextlib import AsyncExitStack
45
from functools import partial
56
from logging import Logger, getLogger
6-
from typing import Callable
77

88
from anyio import TASK_STATUS_IGNORED, Event, Lock, create_task_group
99
from anyio.abc import TaskGroup, TaskStatus

src/pycrdt/websocket/yroom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from __future__ import annotations
22

3-
from collections.abc import Awaitable
3+
from collections.abc import Awaitable, Callable
44
from contextlib import AsyncExitStack
55
from functools import partial
66
from inspect import isawaitable
77
from logging import Logger, getLogger
8-
from typing import Any, Callable, Protocol
8+
from typing import Any, Protocol
99

1010
from anyio import (
1111
TASK_STATUS_IGNORED,

0 commit comments

Comments
 (0)