-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
Closed
Labels
type-featureA feature request or enhancementA feature request or enhancement
Description
Requested by @mdickinson in #100268 (comment)
The case for:
- Improves duck type compatibility between Fraction and float (and now int)
- Simple to implement; hopefully low maintenance cost
The case against:
- Not aware of much demand for it from users
- The case for int.is_integer is much stronger, since the PEP 484 type system conflates
float
andint | float
Linked PRs
Metadata
Metadata
Assignees
Labels
type-featureA feature request or enhancementA feature request or enhancement