Skip to content

Commit 20f5095

Browse files
committed
Fix return type of DataSet edit dialog method
1 parent 4d3ad74 commit 20f5095

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guidata/dataset/datatypes.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@
8383
from qtpy.QtCore import QSize
8484
from qtpy.QtWidgets import QDialog, QWidget
8585

86-
from guidata.dataset.qtwidgets import DataSetEditDialog
8786
from guidata.io import HDF5Reader, HDF5Writer, JSONReader, JSONWriter
8887

8988

@@ -1375,14 +1374,17 @@ def edit(
13751374
apply: Callable | None = None,
13761375
wordwrap: bool = True,
13771376
size: QSize | tuple[int, int] | None = None,
1378-
) -> DataSetEditDialog:
1377+
) -> int:
13791378
"""Open a dialog box to edit data set
13801379
13811380
Args:
13821381
parent: parent widget (default is None, meaning no parent)
13831382
apply: apply callback (default is None)
13841383
wordwrap: if True, comment text is wordwrapped
13851384
size: dialog size (QSize object or integer tuple (width, height))
1385+
1386+
Returns:
1387+
Dialog exit code.
13861388
"""
13871389
# Importing those modules here avoids Qt dependency when
13881390
# guidata is used without Qt

0 commit comments

Comments
 (0)