Skip to content

Commit

Permalink
Allow _repr_mimebundle_ to accept positional arguments (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart authored Feb 4, 2025
1 parent 92d9cd6 commit 9992856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ypywidgets/comm.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(
self._comm = create_widget_comm(comm_data, comm_metadata, comm_id)
CommProvider(self.ydoc, self._comm)

def _repr_mimebundle_(self, **kwargs): # pragma: nocover
def _repr_mimebundle_(self, *args, **kwargs): # pragma: nocover
plaintext = repr(self)
if len(plaintext) > 110:
plaintext = plaintext[:110] + '…'
Expand Down

0 comments on commit 9992856

Please sign in to comment.