Skip to content

Wrong Python version causing Attribute Error is_integer() in utils.py #944

@taesuhpark

Description

@taesuhpark

requires-python = ">=3.11"

This version should be set to '>=3.12' (or higher) at least, because tunix/tunix/rl/utils.py calls value.is_integer() which is safely supported for the base int type since Python v3.12. For example, see below:

if value is not None and (not value.is_integer() or value <= 0):

I tested it with v3.11 and confirmed it causes Attribute Error. You should upgrade the default Python version to 3.12 (or higher) in pyproject.toml or substitute all value.is_integer() with the more primitive and safe isinstance().

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions