Skip to content

Commit 50b4c85

Browse files
test: Refactor to use typing.Any
1 parent 1f44e8b commit 50b4c85

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_dataframe_compatibility.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33

44

55
class DummyLengthOnly:
6-
length: int
6+
length: typing.Any
77

8-
def __init__(self, length: int):
8+
def __init__(self, length: typing.Any):
99
self.length = length
1010

11-
def __len__(self) -> int:
11+
def __len__(self) -> typing.Any:
1212
return self.length
1313

1414

@@ -22,10 +22,10 @@ def __getitem__(self, i: int) -> typing.Any:
2222
return self.dataset[i]
2323

2424

25-
class DummyNonSequence(DummyLengthOnly, DummyGetOnly):
26-
length: int
25+
class DummySequenceLike(DummyLengthOnly, DummyGetOnly):
26+
length: typing.Any
2727
dataset: list
2828

29-
def __init__(self, length: int, dataset: list):
29+
def __init__(self, length: typing.Any, dataset: list):
3030
DummyLengthOnly.__init__(self, length)
3131
DummyGetOnly.__init__(self, dataset)

0 commit comments

Comments
 (0)