Skip to content

Commit

Permalink
Remove unnecessary code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Fleming committed Sep 11, 2024
1 parent 7fa9cba commit 234752c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
10 changes: 0 additions & 10 deletions python/ipywidgets/ipywidgets/widgets/tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.

import pytest

from ipywidgets import Widget
import ipywidgets.widgets.widget
Expand Down Expand Up @@ -105,12 +104,3 @@ def setup():

def call_method(method, *args, **kwargs):
method(*args, **kwargs)


@pytest.fixture
def dummy_comm_fixture():
setup()
try:
yield
finally:
teardown_test_comm()
3 changes: 1 addition & 2 deletions python/ipywidgets/ipywidgets/widgets/widget_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ class Box(DOMWidget, CoreWidget):
>>> widgets.Box([title_widget, slider])
"""
_model_name = Unicode('BoxModel').tag(sync=True)
_view_name = Unicode('BoxView').tag(sync=True)
tooltip = Unicode('', allow_none=True, help='A tooltip caption.').tag(sync=True)
_view_name = Unicode("BoxView").tag(sync=True)
validate_mode = CaselessStrEnum(['raise', 'log_warning', 'log_error'], 'raise')

# Child widgets in the container.
Expand Down
1 change: 0 additions & 1 deletion python/ipywidgets/ipywidgets/widgets/widget_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def func():

msg_id = Unicode('', help="Parent message id of messages to capture").tag(sync=True)
outputs = TypedTuple(trait=Dict(), help="The output messages synced from the frontend.").tag(sync=True)
tooltip = Unicode('', allow_none=True, help="A tooltip caption.").tag(sync=True)

__counter = 0

Expand Down

0 comments on commit 234752c

Please sign in to comment.