Skip to content

Commit 9ce1d54

Browse files
NellIncclaude
andcommitted
fix: use collections.abc.Callable for Python 3.10+
- Fix UP035: import Callable from collections.abc - Fix ruff config: move select to lint.select section Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent bcf6189 commit 9ce1d54

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

creed_guardian/guardian.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
import logging
1010
import re
1111
import time
12-
from typing import Callable, TypeVar
12+
from collections.abc import Callable
13+
from typing import TypeVar
1314
from urllib.parse import urlparse
1415

1516
import httpx

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ target-version = ["py310", "py311", "py312"]
5959
[tool.ruff]
6060
line-length = 88
6161
target-version = "py310"
62+
63+
[tool.ruff.lint]
6264
select = ["E", "F", "I", "N", "W", "UP"]
6365

6466
[tool.mypy]

0 commit comments

Comments
 (0)