Skip to content

fix(utils): correct positive integer validation#930

Open
parthmaheshwari-hub wants to merge 1 commit intogoogle:mainfrom
parthmaheshwari-hub:fix/is-positive-integer
Open

fix(utils): correct positive integer validation#930
parthmaheshwari-hub wants to merge 1 commit intogoogle:mainfrom
parthmaheshwari-hub:fix/is-positive-integer

Conversation

@parthmaheshwari-hub
Copy link
Copy Markdown

@parthmaheshwari-hub parthmaheshwari-hub commented Dec 21, 2025

Fixes #902

The previous implementation incorrectly called is_integer() on Python
ints, which raises an AttributeError. This change replaces the check
with a proper isinstance(value, int) validation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RL utils.py has an incorrect check for is_positive_integer

1 participant