Skip to content

Conversation

sunnynguyen-ai
Copy link

Bug Fix

Fixed incorrect comparison logic in AbsMax and AbsMin classes.

Changes

  • Changed other is not AbsMax to not isinstance(other, AbsMax)
  • Changed other is not AbsMin to not isinstance(other, AbsMin)

Impact

  • Fixes behavior when comparing instances of the same class
  • Ensures between() validator works correctly with default parameters

- Changed identity comparison (is not) to instance checking (isinstance)
  - Fixes incorrect behavior when comparing instances of same class
- Extract IP address part from CIDR notation before checking if private
- Fixes validation of addresses like "192.168.1.0/24" with private parameter
- Prevents incorrect private/public detection when subnet mask is included
@yozachar
Copy link
Collaborator

I'm afraid, I do not see the need for change.

@yozachar yozachar added the waiting Issue/PR: Wating for reply label Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Issue/PR: Wating for reply
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants