Skip to content

Commit 545d114

Browse files
committed
formatting
1 parent d0faee3 commit 545d114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/project_x_py/utils/enhanced_stats_tracking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def safe_int(value: Any, default: int = 0) -> int:
216216
"""Safely convert value to int with validation."""
217217
if value is None:
218218
return default
219-
if isinstance(value, (int, float)):
219+
if isinstance(value, int | float):
220220
return int(value)
221221
if isinstance(value, str) and value.isdigit():
222222
return int(value)
@@ -342,7 +342,7 @@ def safe_int(value: Any, default: int = 0) -> int:
342342
"""Safely convert value to int with validation."""
343343
if value is None:
344344
return default
345-
if isinstance(value, (int, float)):
345+
if isinstance(value, int | float):
346346
return int(value)
347347
if isinstance(value, str) and value.isdigit():
348348
return int(value)

0 commit comments

Comments
 (0)