Skip to content

Commit

Permalink
removed type checks for api client
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick762 committed Aug 6, 2023
1 parent 6eeccaf commit 4625e6e
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 58 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
with codecs.open(os.path.join(here, "README.md"), encoding="utf-8") as fh:
long_description = "\n" + fh.read()

VERSION = "0.0.10"
VERSION = "0.0.11"
DESCRIPTION = "Stream Deck API Library"

# Setting up
Expand Down
22 changes: 0 additions & 22 deletions streamdeckapi/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,28 +38,6 @@ def __init__(
on_ws_connect (Callable[[], None] or None): Callback on websocket connected
"""

# Type checks
if on_button_press is not None and not isinstance(
on_button_press, Callable[[str], None]
):
raise TypeError()
if on_button_release is not None and not isinstance(
on_button_release, Callable[[str], None]
):
raise TypeError()
if on_status_update is not None and not isinstance(
on_status_update, Callable[[SDInfo], None]
):
raise TypeError()
if on_ws_message is not None and not isinstance(
on_ws_message, Callable[[SDWebsocketMessage], None]
):
raise TypeError()
if on_ws_connect is not None and not isinstance(
on_ws_connect, Callable[[], None]
):
raise TypeError()

self._host = host
self._on_button_press = on_button_press
self._on_button_release = on_button_release
Expand Down
35 changes: 0 additions & 35 deletions tests/api_test.py

This file was deleted.

0 comments on commit 4625e6e

Please sign in to comment.