From 514c85854e4b195682208b4b5e2eda72289234bf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:25:20 +0000 Subject: [PATCH 1/2] ci: weekly check. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.4.0...v4.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.292](https://github.com/astral-sh/ruff-pre-commit/compare/v0.0.282...v0.0.292) - [github.com/psf/black: 23.7.0 → 23.9.1](https://github.com/psf/black/compare/23.7.0...23.9.1) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index bae06de8e..e58e2859e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: requirements-txt-fixer name: Requirements @@ -30,12 +30,12 @@ repos: - id: check-merge-conflict name: Merge Conflicts - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.0.282' + rev: 'v0.0.292' hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black name: Black Formatting From 363aa77bb65bae918f70284c13e52c49376b4d83 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 9 Oct 2023 20:25:34 +0000 Subject: [PATCH 2/2] ci: correct from checks. --- interactions/models/internal/application_commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interactions/models/internal/application_commands.py b/interactions/models/internal/application_commands.py index 073184f1a..b6cde4f0d 100644 --- a/interactions/models/internal/application_commands.py +++ b/interactions/models/internal/application_commands.py @@ -535,7 +535,7 @@ def _is_optional(anno: typing.Any) -> bool: def _remove_optional(t: OptionType | type) -> Any: - non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType) # noqa + non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType) if len(non_optional_args) == 1: return non_optional_args[0] return typing.Union[non_optional_args] # type: ignore