Skip to content

Commit

Permalink
ci: weekly check. (#1532)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
pre-commit-ci[bot] authored Oct 12, 2023
1 parent fab80e0 commit 4236ac7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion interactions/models/internal/application_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4236ac7

Please sign in to comment.