Skip to content

Commit bb8b967

Browse files
committed
Update splash_radius assertion to use integer comparison
Changed the assertion in IconButton.before_update to compare splash_radius against 0 instead of 0.0, ensuring the value is greater than zero regardless of type.
1 parent f13dc40 commit bb8b967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/python/packages/flet/src/flet/controls/material/icon_button.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ def toggle_icon_button(e):
236236

237237
def before_update(self):
238238
super().before_update()
239-
assert self.splash_radius is None or self.splash_radius > 0.0, (
239+
assert self.splash_radius is None or self.splash_radius > 0, (
240240
f"splash_radius must be greater than 0, got {self.splash_radius}"
241241
)
242242
if (

0 commit comments

Comments
 (0)