Skip to content

Commit 0c6cea5

Browse files
committed
Bump ruff linter target to Python 3.14.
This solves a bunch of really weird complaints about class methods: ``` ERROR Expected a callable, got `classmethod[Unknown, [**kwargs: Any], Any]` [not-callable] --> fastly_compute/tests/test_exception_remapping.py:82:13 | 82 | self.raise_int_by_surprise() ```
1 parent 11ae6a3 commit 0c6cea5

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

fastly_compute/log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def __init__(self, endpoint: wit_log.Endpoint):
7171
OpenError.RESERVED: LogEndpointInvalidNameError,
7272
}
7373
)
74-
def open(cls, name: str) -> "LogEndpoint":
74+
def open(cls, name: str) -> Self:
7575
r"""Open a logging endpoint by name.
7676
7777
Names are case sensitive. Calling open() with a name that doesn't

fastly_compute/requests/timeout.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
requests-compatible timeouts and Fastly-specific granular timeout controls.
55
"""
66

7-
from typing import override
7+
from typing import Self, override
88

99

1010
class TimeoutConfig:
@@ -54,7 +54,7 @@ def between_bytes_ms(self) -> int:
5454
@classmethod
5555
def from_requests_timeout(
5656
cls, timeout: None | float | tuple[float, float]
57-
) -> "TimeoutConfig":
57+
) -> Self:
5858
"""Create TimeoutConfig from requests-compatible timeout parameter.
5959
6060
Args:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ addopts = [
3737
]
3838

3939
[tool.ruff]
40-
target-version = "py312"
40+
target-version = "py314"
4141
line-length = 88
4242

4343
[tool.ruff.lint]

0 commit comments

Comments
 (0)