Skip to content

Commit

Permalink
type annotations, v0.1.0a2
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Jul 24, 2022
1 parent 28a2cf9 commit ab713aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tabulous/widgets/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ab713aa

Please sign in to comment.