Skip to content

Commit 4236ac7

Browse files
ci: weekly check. (#1532)
* ci: weekly check. updates: - [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0) - [github.com/astral-sh/ruff-pre-commit: v0.0.282 → v0.0.292](astral-sh/ruff-pre-commit@v0.0.282...v0.0.292) - [github.com/psf/black: 23.7.0 → 23.9.1](psf/black@23.7.0...23.9.1) * ci: correct from checks. --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent fab80e0 commit 4236ac7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.4.0
3+
rev: v4.5.0
44
hooks:
55
- id: requirements-txt-fixer
66
name: Requirements
@@ -30,12 +30,12 @@ repos:
3030
- id: check-merge-conflict
3131
name: Merge Conflicts
3232
- repo: https://github.com/astral-sh/ruff-pre-commit
33-
rev: 'v0.0.282'
33+
rev: 'v0.0.292'
3434
hooks:
3535
- id: ruff
3636
args: [--fix, --exit-non-zero-on-fix]
3737
- repo: https://github.com/psf/black
38-
rev: 23.7.0
38+
rev: 23.9.1
3939
hooks:
4040
- id: black
4141
name: Black Formatting

interactions/models/internal/application_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def _is_optional(anno: typing.Any) -> bool:
535535

536536

537537
def _remove_optional(t: OptionType | type) -> Any:
538-
non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType) # noqa
538+
non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType)
539539
if len(non_optional_args) == 1:
540540
return non_optional_args[0]
541541
return typing.Union[non_optional_args] # type: ignore

0 commit comments

Comments
 (0)