Skip to content

Commit

Permalink
Merge pull request #5188 from Textualize/reverse-micro-op
Browse files Browse the repository at this point in the history
remove __int__
  • Loading branch information
willmcgugan authored Oct 28, 2024
2 parents dabb773 + 3170d7a commit 3992a38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/textual/_resolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def resolve(

fraction_gutter = Fraction(gutter)
offsets = [0] + [
fraction.__int__()
fraction.__floor__()
for fraction in accumulate(
value
for fraction in resolved_fractions
Expand Down
6 changes: 3 additions & 3 deletions src/textual/layouts/vertical.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def arrange(
_WidgetPlacement(
_Region(
box_margin.left,
y.__int__(),
content_width.__int__(),
next_y.__int__() - y.__int__(),
y.__floor__(),
content_width.__floor__(),
next_y.__floor__() - y.__floor__(),
),
box_margin,
widget,
Expand Down

0 comments on commit 3992a38

Please sign in to comment.