From ab713aa3a023479ab261e8ee2a56ff68e3e83443 Mon Sep 17 00:00:00 2001 From: hanjinliu Date: Mon, 25 Jul 2022 00:53:06 +0900 Subject: [PATCH] type annotations, v0.1.0a2 --- tabulous/widgets/table.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tabulous/widgets/table.py b/tabulous/widgets/table.py index 30192403..86a50868 100644 --- a/tabulous/widgets/table.py +++ b/tabulous/widgets/table.py @@ -171,6 +171,7 @@ def _normalize_data(self, data) -> pd.DataFrame: class Table(_DataFrameTableLayer): _Default_Name = "table" + _qwidget: QTableLayer def _create_backend(self, data: pd.DataFrame) -> QTableLayer: from .._qt import QTableLayer @@ -180,6 +181,7 @@ def _create_backend(self, data: pd.DataFrame) -> QTableLayer: class SpreadSheet(_DataFrameTableLayer): _Default_Name = "sheet" + _qwidget: QSpreadSheet def _create_backend(self, data: pd.DataFrame) -> QSpreadSheet: from .._qt import QSpreadSheet @@ -189,6 +191,7 @@ def _create_backend(self, data: pd.DataFrame) -> QSpreadSheet: class GroupBy(TableBase): _Default_Name = "groupby" + _qwidget: QTableGroupBy def _create_backend(self, data: pd.DataFrame) -> QTableGroupBy: from .._qt import QTableGroupBy @@ -230,6 +233,7 @@ def current_group(self, val) -> None: class TableDisplay(TableBase): _Default_Name = "display" + _qwidget: QTableDisplay def _create_backend(self, data: Callable[[], Any]) -> QTableDisplay: from .._qt import QTableDisplay