2 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
d2a94a8b55 👷 pre-commit autoupdate
updates:
- [github.com/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0)
- [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.14.10](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.11...v0.14.10)
- [github.com/bhundven/copywrite: 937f17f09c46992447dfa8977bb96eda512588c4 → 9d021bf61a094a5eac6ae3084ceed2dda4700a73](937f17f09c...9d021bf61a)
2025-12-22 19:06:16 +00:00
Paillat
3a111fc998 🐛 Update private attribute access in view handling logic (#52) 2025-12-10 19:48:43 +01:00
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ ci:
repos: repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 rev: v6.0.0
hooks: hooks:
- id: trailing-whitespace - id: trailing-whitespace
exclude: \.(po|pot|yml|yaml)$ exclude: \.(po|pot|yml|yaml)$
@@ -21,7 +21,7 @@ repos:
exclude: \.(po|pot|yml|yaml)$ exclude: \.(po|pot|yml|yaml)$
- repo: https://github.com/astral-sh/ruff-pre-commit - repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version. # Ruff version.
rev: v0.11.11 rev: v0.14.10
hooks: hooks:
# Run the linter. # Run the linter.
- id: ruff - id: ruff
@@ -29,6 +29,6 @@ repos:
# Run the formatter. # Run the formatter.
- id: ruff-format - id: ruff-format
- repo: https://github.com/bhundven/copywrite # waiting for https://github.com/hashicorp/copywrite/pull/120 to be merged - repo: https://github.com/bhundven/copywrite # waiting for https://github.com/hashicorp/copywrite/pull/120 to be merged
rev: 937f17f09c46992447dfa8977bb96eda512588c4 rev: 9d021bf61a094a5eac6ae3084ceed2dda4700a73
hooks: hooks:
- id: add-headers - id: add-headers

View File

@@ -91,7 +91,7 @@ class App(discord.Bot):
item.refresh_state(interaction) item.refresh_state(interaction)
# Code taken from View._dispatch_item # Code taken from View._dispatch_item
if view._View__stopped.done(): # noqa: SLF001 # pyright: ignore [reportAttributeAccessIssue, reportUnknownMemberType] if view._stopped.done(): # noqa: SLF001 # pyright: ignore [reportPrivateUsage]
return return
if interaction.message: if interaction.message: