Skip to content

Commit

Permalink
Bump black from 23.9.1 to 24.3.0 (#376)
Browse files Browse the repository at this point in the history
* ---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add changelog entry

* Reformat to make linter happy

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Devon Hudson <devonhudson@librem.one>
  • Loading branch information
dependabot[bot] and devonh committed May 21, 2024
1 parent 878d744 commit 98df467
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 34 deletions.
1 change: 1 addition & 0 deletions changelog.d/376.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bump `black` from 23.9.1 to 24.3.0.
50 changes: 25 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Twisted = ">=19.7,<23.10"
zope-interface = ">=5.0.0"

[tool.poetry.group.dev.dependencies]
black = "==23.9.1"
black = "==24.3.0"
coverage = "~=5.5"
ruff = "==0.0.291"
isort = "~=5.10"
Expand Down
14 changes: 6 additions & 8 deletions sygnal/notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@


@overload
def get_key(raw: Dict[str, Any], key: str, type_: Type[T], default: T) -> T:
...
def get_key(raw: Dict[str, Any], key: str, type_: Type[T], default: T) -> T: ...


@overload
def get_key(
raw: Dict[str, Any], key: str, type_: Type[T], default: None = None
) -> Optional[T]:
...
) -> Optional[T]: ...


def get_key(
Expand Down Expand Up @@ -118,12 +116,12 @@ def __init__(self, name: str, sygnal: "Sygnal", config: Dict[str, Any]):
self.sygnal = sygnal

@overload
def get_config(self, key: str, type_: Type[T], default: T) -> T:
...
def get_config(self, key: str, type_: Type[T], default: T) -> T: ...

@overload
def get_config(self, key: str, type_: Type[T], default: None = None) -> Optional[T]:
...
def get_config(
self, key: str, type_: Type[T], default: None = None
) -> Optional[T]: ...

def get_config(
self, key: str, type_: Type[T], default: Optional[T] = None
Expand Down

0 comments on commit 98df467

Please sign in to comment.