Skip to content

Commit

Permalink
#50 type-verbose: fixed issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
numbworks committed Dec 30, 2024
1 parent 3cc700d commit dba01ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/nwtimetrackingtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dba01ab

Please sign in to comment.