Skip to content

Commit 1160f6c

Browse files
committed
Upgrading to use PY314.
1 parent bc31b65 commit 1160f6c

File tree

18 files changed

+1595
-2783
lines changed

18 files changed

+1595
-2783
lines changed

dask-test/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [
77
]
88
readme = "README.md"
99
license = {text = "Apache"}
10-
requires-python = "<4.0,>=3.10"
10+
requires-python = "<4.0,>=3.14"
1111
dependencies = [
1212
"dask<2025.0.0,>=2024.8.2",
1313
"distributed<2025.0.0,>=2024.8.2",
@@ -53,7 +53,7 @@ exclude = [
5353

5454
line-length = 120
5555
indent-width = 4
56-
target-version = "py39"
56+
target-version = "py314"
5757

5858
[tool.ruff.lint]
5959
select = [

dask-test/uv.lock

Lines changed: 201 additions & 512 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker-health-check/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ classifiers = [
1717
"Programming Language :: Python :: 3.11",
1818
"Programming Language :: Python :: 3.12",
1919
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
2021
]
21-
requires-python = "<4.0,>=3.13"
22+
requires-python = "<4.0,>=3.14"
2223
dependencies = [
2324
"docker<8.0.0,>=7.1.0",
2425
"anyio<5.0.0.0,>=4.6.2.post1",

docker-health-check/uv.lock

Lines changed: 166 additions & 236 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

github/github/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import asyncio
22
import logging
3-
from collections.abc import AsyncIterable
43
from http import HTTPMethod
5-
from typing import Any
4+
from typing import TYPE_CHECKING, Any
65

76
from github import httpclient, providers
87

8+
if TYPE_CHECKING:
9+
from collections.abc import AsyncIterable
10+
911
logger = logging.getLogger(__name__)
1012

1113

github/github/httpclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async def _execute(
7777
@asynccontextmanager
7878
async def _make_request(
7979
self, method: HTTPMethod, url: str, headers: dict[str, str], params: dict[str, Any] | None = None
80-
) -> AsyncGenerator[requests.models.Response, None]:
80+
) -> AsyncGenerator[requests.models.Response]:
8181
async with self._create_session() as session:
8282
response = await session.request(str(method), url, headers=headers, params=params)
8383
response.raise_for_status()

github/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ classifiers = [
1717
"Programming Language :: Python :: 3.11",
1818
"Programming Language :: Python :: 3.12",
1919
"Programming Language :: Python :: 3.13",
20+
"Programming Language :: Python :: 3.14",
2021
]
21-
requires-python = "<4.0,>=3.12"
22+
requires-python = "<4.0,>=3.14"
2223
dependencies = [
2324
"asyncclick<9.0.0.0,>=8.1.7.2",
2425
"backoff<3.0.0,>=2.2.1",
@@ -68,7 +69,7 @@ exclude = [
6869

6970
line-length = 120
7071
indent-width = 4
71-
target-version = "py39"
72+
target-version = "py314"
7273

7374
[tool.ruff.lint]
7475
select = [

github/uv.lock

Lines changed: 492 additions & 725 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hadoop/hadoop/identity/mapper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
import sys
3-
from collections.abc import Iterable
3+
from typing import TYPE_CHECKING
4+
5+
if TYPE_CHECKING:
6+
from collections.abc import Iterable
47

58

69
def main(lines: Iterable[str]) -> None:

hadoop/hadoop/identity/reducer.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env python
22
import sys
3-
from collections.abc import Iterable
3+
from typing import TYPE_CHECKING
4+
5+
if TYPE_CHECKING:
6+
from collections.abc import Iterable
47

58

69
def main(lines: Iterable[str]) -> None:

0 commit comments

Comments
 (0)