Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#64)
Browse files Browse the repository at this point in the history
* [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>
  • Loading branch information
pre-commit-ci[bot] authored Jan 29, 2024
1 parent d7fac1b commit 143b21a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ exclude: ".env,.yml,.gitignore,.git,.md,.txt"
default_stages: [push, commit]
repos:
- repo: https://github.com/PyCQA/bandit
rev: 1.7.6
rev: 1.7.7
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
Expand All @@ -14,7 +14,7 @@ repos:
additional_dependencies: ["bandit[toml]"]

- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
name: Black
Expand Down
6 changes: 2 additions & 4 deletions bot/libs/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ def rodhaj(self) -> _T:
return self._config.get("rodhaj", {})

@overload
def get(self, key: Any) -> Optional[Union[_T, Any]]:
...
def get(self, key: Any) -> Optional[Union[_T, Any]]: ...

@overload
def get(self, key: Any, default: Any) -> Union[_T, Any]:
...
def get(self, key: Any, default: Any) -> Union[_T, Any]: ...

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

0 comments on commit 143b21a

Please sign in to comment.