Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- uses: actions/setup-python@v5
with:
python-version: '3.12'
python-version: '3.13'

- name: Install dependencies
run: pip install -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ jobs:
python-version:
- "pypy3.9"
- "pypy3.10"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
experimental: [ false ]
include:
- python-version: "~3.13.0-0"
- python-version: "~3.14.0-0"
experimental: true

steps:
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pip-delete-this-directory.txt

## Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand Down
4 changes: 2 additions & 2 deletions examples/webapp.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This is code for the tutorial in README.md
from typing import Any, List, MutableMapping
from typing import Any, List, MutableMapping, Optional

from aiohttp.web import Application

Expand Down Expand Up @@ -95,7 +95,7 @@ class App(Service):
def __init__(
self,
web_port: int = 8000,
web_bind: str = None,
web_bind: Optional[str] = None,
websocket_port: int = 8001,
**kwargs: Any
) -> None:
Expand Down
3 changes: 2 additions & 1 deletion mode/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@

import sys
import typing
from collections.abc import Mapping, Sequence

# Lazy loading.
# - See werkzeug/__init__.py for the rationale behind this.
from types import ModuleType
from typing import Any, Mapping, Sequence
from typing import Any

# -eof meta-

Expand Down
6 changes: 3 additions & 3 deletions mode/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import signal
import traceback
from types import FrameType
from typing import Any, Type
from typing import Any

from .services import Service
from .utils.logging import get_logger
Expand Down Expand Up @@ -59,11 +59,11 @@ class BlockingDetector(Service):
def __init__(
self,
timeout: Seconds,
raises: Type[BaseException] = Blocking,
raises: type[BaseException] = Blocking,
**kwargs: Any,
) -> None:
self.timeout: float = want_seconds(timeout)
self.raises: Type[BaseException] = raises
self.raises: type[BaseException] = raises
super().__init__(**kwargs)

@Service.task
Expand Down
Loading
Loading