Skip to content

Commit 7c871b4

Browse files
authored
Merge branch 'master' into partial-autocomplete
2 parents 5c7b95c + 2bf8fcd commit 7c871b4

10 files changed

Lines changed: 26 additions & 16 deletions

File tree

.github/workflows/docs-localization-download.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
working-directory: ./docs
4141
- name: "Crowdin"
4242
id: crowdin
43-
uses: crowdin/github-action@v2.11.0
43+
uses: crowdin/github-action@v2.12.0
4444
with:
4545
upload_sources: false
4646
upload_translations: false

.github/workflows/docs-localization-upload.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
sphinx-intl update -p ./build/locales ${{ vars.SPHINX_LANGUAGES }}
4545
working-directory: ./docs
4646
- name: "Crowdin"
47-
uses: crowdin/github-action@v2.11.0
47+
uses: crowdin/github-action@v2.12.0
4848
with:
4949
upload_sources: true
5050
upload_translations: false

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ jobs:
198198
python3 -m build --sdist
199199
python3 -m build --wheel
200200
- name: "Create GitHub Release"
201-
uses: softprops/action-gh-release@v2.3.3
201+
uses: softprops/action-gh-release@v2.4.1
202202
id: gh-release
203203
with:
204204
tag_name: "v${{ inputs.version }}"

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ repos:
2121
# - --remove-duplicate-keys
2222
# - --remove-unused-variables
2323
- repo: https://github.com/asottile/pyupgrade
24-
rev: v3.20.0
24+
rev: v3.21.0
2525
hooks:
2626
- id: pyupgrade
2727
exclude: \.(po|pot|yml|yaml)$
2828
- repo: https://github.com/PyCQA/isort
29-
rev: 6.0.1
29+
rev: 7.0.0
3030
hooks:
3131
- id: isort
3232
exclude: \.(po|pot|yml|yaml)$
33-
- repo: https://github.com/psf/black
34-
rev: 25.1.0
33+
- repo: https://github.com/psf/black-pre-commit-mirror
34+
rev: 25.9.0
3535
hooks:
3636
- id: black
3737
args: [--safe, --quiet]

discord/ui/media_gallery.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def add_item(
8080
*,
8181
description: str = None,
8282
spoiler: bool = False,
83-
) -> None:
83+
) -> Self:
8484
"""Adds a new media item to the gallery.
8585
8686
Parameters

discord/ui/view.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@
3131
import time
3232
from functools import partial
3333
from itertools import groupby
34-
from typing import TYPE_CHECKING, Any, Callable, ClassVar, Iterator, Sequence, TypeVar
34+
from typing import (
35+
TYPE_CHECKING,
36+
Any,
37+
Callable,
38+
ClassVar,
39+
Iterator,
40+
Self,
41+
Sequence,
42+
TypeVar,
43+
)
3544

3645
from ..components import ActionRow as ActionRowComponent
3746
from ..components import Button as ButtonComponent
@@ -375,7 +384,7 @@ def _expires_at(self) -> float | None:
375384
return time.monotonic() + self.timeout
376385
return None
377386

378-
def add_item(self, item: Item[V]) -> None:
387+
def add_item(self, item: Item[V]) -> Self:
379388
"""Adds an item to the view.
380389
381390
Parameters

renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"extends": [
44
"local>Pycord-Development/renovate-config",
55
":semanticPrefixFixDepsChoreOthers",
6-
":dependencyDashboard"
6+
":dependencyDashboard",
7+
":enablePreCommit"
78
],
89
"assigneesFromCodeOwners": true,
910
"pip_requirements": {

requirements/dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-r _.txt
22
pylint~=3.3.8
33
pytest~=8.4.1
4-
pytest-asyncio~=1.1.0
4+
pytest-asyncio~=1.2.0
55
# pytest-order~=1.0.1
66
mypy~=1.18.1
77
coverage~=7.10

requirements/docs.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
sphinx==8.0.2
1+
sphinx==8.2.3
22
sphinxcontrib_trio==1.1.2
33
sphinxcontrib-websupport==2.0.0
44
myst-parser[linkify]==4.0.1
5-
sphinxext-opengraph==0.12.0
5+
sphinxext-opengraph==0.13.0
66
sphinx-copybutton==0.5.2
77
furo==2024.8.6
8-
sphinx-autodoc-typehints==2.2.3
8+
sphinx-autodoc-typehints==3.5.2
99
sphinx-intl==2.3.2
1010
typing_extensions==4.15.0
1111
levenshtein==0.27.1

requirements/voice.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
PyNaCl>=1.3.0,<1.6
1+
PyNaCl>=1.6,<1.7

0 commit comments

Comments
 (0)