Skip to content

Commit 143b21a

Browse files
[pre-commit.ci] pre-commit autoupdate (#64)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/bandit: 1.7.6 → 1.7.7](PyCQA/bandit@1.7.6...1.7.7) - [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent d7fac1b commit 143b21a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ exclude: ".env,.yml,.gitignore,.git,.md,.txt"
55
default_stages: [push, commit]
66
repos:
77
- repo: https://github.com/PyCQA/bandit
8-
rev: 1.7.6
8+
rev: 1.7.7
99
hooks:
1010
- id: bandit
1111
args: ["-c", "pyproject.toml"]
@@ -14,7 +14,7 @@ repos:
1414
additional_dependencies: ["bandit[toml]"]
1515

1616
- repo: https://github.com/psf/black
17-
rev: 23.12.1
17+
rev: 24.1.1
1818
hooks:
1919
- id: black
2020
name: Black

bot/libs/utils/config.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ def rodhaj(self) -> _T:
2424
return self._config.get("rodhaj", {})
2525

2626
@overload
27-
def get(self, key: Any) -> Optional[Union[_T, Any]]:
28-
...
27+
def get(self, key: Any) -> Optional[Union[_T, Any]]: ...
2928

3029
@overload
31-
def get(self, key: Any, default: Any) -> Union[_T, Any]:
32-
...
30+
def get(self, key: Any, default: Any) -> Union[_T, Any]: ...
3331

3432
def get(self, key: Any, default: Any = None) -> Optional[Union[_T, Any]]:
3533
"""Retrieves a config entry."""

0 commit comments

Comments
 (0)