From dba01abcb3a1e44d88c616e44edae3b74dccc534 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A8n?= Date: Mon, 30 Dec 2024 18:09:27 +0000 Subject: [PATCH] #50 type-verbose: fixed issues. --- tests/nwtimetrackingtests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/nwtimetrackingtests.py b/tests/nwtimetrackingtests.py index 7e1e7e8..ffe4981 100644 --- a/tests/nwtimetrackingtests.py +++ b/tests/nwtimetrackingtests.py @@ -2811,8 +2811,8 @@ def test_orchestrateheadn_shouldreturntail_whenheadnisnotnoneanddisplayheadnwith ) df : DataFrame = DataFrame({"2015": ["10h 30m", "15h 45m"], "↕": ["↑", "↑"], "2016": ["20h 45m", "20h 00m"]}) - head_n : Optional[int] = 2 - expected : DataFrame = df.tail(n = int(head_n)) + head_n : Optional[uint] = uint(2) + expected : DataFrame = df.tail(n = cast(int, head_n)) # Act actual : DataFrame = tt_adapter._TTAdapter__orchestrate_head_n(df = df, head_n = head_n, display_head_n_with_tail = True) # type: ignore @@ -2832,8 +2832,8 @@ def test_orchestrateheadn_shouldreturnhead_whenheadnisnotnoneanddisplayheadnwith ) df : DataFrame = DataFrame({"2015": ["10h 30m", "15h 45m"], "↕": ["↑", "↑"], "2016": ["20h 45m", "20h 00m"]}) - head_n : Optional[int] = 2 - expected : DataFrame = df.head(n = int(head_n)) + head_n : Optional[uint] = uint(2) + expected : DataFrame = df.head(n = cast(int, head_n)) # Act actual : DataFrame = tt_adapter._TTAdapter__orchestrate_head_n(df = df, head_n = head_n, display_head_n_with_tail = False) # type: ignore