Skip to content

Commit 070255c

Browse files
committed
Drop support for Python 3.10
1 parent e29bcfb commit 070255c

File tree

5 files changed

+7
-27
lines changed

5 files changed

+7
-27
lines changed

.github/workflows/lint-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
python_version: ["3.10", "3.11", "3.12"]
11+
python_version: ["3.11", "3.12"]
1212

1313
name: Run Linting & Test Suites
1414
runs-on: ubuntu-latest

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Changelog
66

77
- :breaking:`208` Split ``fakeredis`` optional dependency from the ``async-rediscache`` extra. You can now install with ``[fakeredis]`` to just install fakeredis (with lua support), ``[async-rediscache]`` to install just ``async-rediscache``, or use either ``[all]`` or ``[async-rediscache,fakeredis]`` to install both. This allows users who do no rely on fakeredis to install in 3.12 environments.
88
- :support:`208` Add support for Python 3.12. Be aware, at time of writing, our usage of fakeredis does not currently support 3.12. This is due to :literal-url:`this lupa issue<https://github.com/scoder/lupa/issues/245>`. Lupa is required by async-rediscache for lua script support within fakeredis. As such, fakeredis can not be installed in a Python 3.12 environment.
9+
- :breaking:`208` Drop support for Python 3.10
910
- :breaking:`208` Drop support for Pydantic 1.X
1011
- :breaking:`207` Enable more ruff linting rules. See :literal-url:`GitHub release notes <https://github.com/python-discord/bot-core/releases/tag/v11.0.0>` for breaking changes.
1112
- :support:`206` Bump ruff from 0.1.15 to 0.2.2, using the new lint config namespace, and linting with the new rules.

poetry.lock

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

pydis_core/utils/cooldown.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525
_HashableArgsTuple = tuple[Hashable, ...]
2626

2727
if typing.TYPE_CHECKING:
28-
import typing_extensions
29-
3028
from pydis_core import BotBase
3129

3230
P = typing.ParamSpec("P")
@@ -75,7 +73,7 @@ class _SeparatedArguments:
7573
non_hashable: _ArgsList
7674

7775
@classmethod
78-
def from_full_arguments(cls, call_arguments: Iterable[object]) -> typing_extensions.Self:
76+
def from_full_arguments(cls, call_arguments: Iterable[object]) -> typing.Self:
7977
"""Create a new instance from full call arguments."""
8078
hashable = list[Hashable]()
8179
non_hashable = list[object]()

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repository = "https://github.com/python-discord/bot-core"
2323
keywords = ["bot", "discord", "discord.py"]
2424

2525
[tool.poetry.dependencies]
26-
python = "3.10.* || 3.11.* || 3.12.*"
26+
python = "3.11.* || 3.12.*"
2727

2828
"discord.py" = "~=2.3.2"
2929
async-rediscache = { version = "1.0.0rc2", optional = true }
@@ -49,7 +49,6 @@ pytest-xdist = "3.5.0"
4949
[tool.poetry.group.lint.dependencies]
5050
ruff = "0.3.0"
5151
pre-commit = "3.6.2"
52-
typing-extensions = "4.10.0"
5352

5453
[tool.poetry.group.doc.dependencies]
5554
Sphinx = "7.2.6"
@@ -60,7 +59,6 @@ six = "1.16.0"
6059
releases = "2.1.1"
6160
sphinx-multiversion = "0.2.4"
6261
docstring-parser = "0.15"
63-
typing-extensions = "4.10.0"
6462
tomli = "2.0.1"
6563

6664
[tool.taskipy.tasks]

0 commit comments

Comments
 (0)