Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjinliu committed Aug 27, 2022
1 parent d060463 commit 725a8e5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@
"psygnal>=0.3.5",
"qtpy>=1.10.0",
"pandas>=1.0.0",
"collections-undo>=0.0.4",
"collections-undo>=0.0.6",
"qtconsole",
],
extras_require={"all": ["seaborn>=0.11", "matplotlib>=3.1", "pyqt5>=5.12.3"]},
entry_points={
"console_scripts": [
"tabulous=tabulous.__main__:main",
],
"console_scripts": ["tabulous=tabulous.__main__:main"],
},
python_requires=">=3.8",
)
2 changes: 1 addition & 1 deletion tabulous/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __new__(cls, *args, **kwargs):
raise TypeError(f"Type {cls.__name__} cannot be instantiated.")


class SelectionRanges(Sequence[tuple[slice, slice]]):
class SelectionRanges(Sequence[Tuple[slice, slice]]):
"""A table data specific selection range list."""

def __init__(self, data: TableBase, ranges: Iterable[tuple[slice, slice]] = ()):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ def get_cell_value(table, row, col):
def edit_cell(table, row, col, value):
table.model().dataEdited.emit(row, col, value)

def slice_equal(s1: tuple[slice, slice], s2: tuple[slice, slice]):
def slice_equal(s1: "tuple[slice, slice]", s2: "tuple[slice, slice]"):
return (
s1[0].start == s2[0].start and
s1[1].start == s2[1].start and
s1[0].stop == s2[0].stop and
s1[1].stop == s2[1].stop
)

def selection_equal(sel1: list[tuple[slice, slice]], sel2: list[tuple[slice, slice]]):
def selection_equal(sel1: "list[tuple[slice, slice]]", sel2: "list[tuple[slice, slice]]"):
if len(sel1) != len(sel2):
return False
for s1, s2 in zip(sel1, sel2):
Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[tox]
envlist = py38,py39,py310
requires = tox-conda

[testenv]
commands =
Expand Down

0 comments on commit 725a8e5

Please sign in to comment.