Skip to content

Commit

Permalink
fix: change type of kwargs in HeadlessWidget.__init__ to object
Browse files Browse the repository at this point in the history
  • Loading branch information
sassanh committed Oct 27, 2024
1 parent 54bcd30 commit 4b473c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Upcoming

- fix: change type of `kwargs` in `HeadlessWidget.__init__` to `object`

## Version 0.11.0

- refactor: drop all the fps handling and render scheduling logic in favor of `Canvas`'s `Callback` instruction which gets called only when new drawing is done
Expand Down
2 changes: 1 addition & 1 deletion headless_kivy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class HeadlessWidget(Widget):

raw_data: ClassVar[NDArray[np.uint8]]

def __init__(self: HeadlessWidget, **kwargs: dict[str, object]) -> None:
def __init__(self: HeadlessWidget, **kwargs: object) -> None:
"""Initialize a `HeadlessWidget`."""
config.check_initialized()

Expand Down

0 comments on commit 4b473c8

Please sign in to comment.