You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ipv4() and ipv6() accept non-string values, and ipv4() raises AttributeError with private= #578
ipv4() and ipv6() are annotated as taking value: str, but the value is passed directly to ipaddress.IPv4Address / IPv4Network (and their IPv6 counterparts), which also accept integers, bytes and tuples. As a result, non-string values are reported as valid IP addresses.
Hi, I mentioned in this issue that I'd like to open a PR with the fix and tests, and I was preparing one. I see #579 was opened without any prior discussion here. @nandgator , would you prefer I submit my PR as well, or should I review #579 instead? Either way is fine with me, I just wanted to clarify since I'd offered to work on this.
Activity
BingSuBing commentedon Nov 21, 2026
Hi, I mentioned in this issue that I'd like to open a PR with the fix and tests, and I was preparing one. I see #579 was opened without any prior discussion here. @nandgator , would you prefer I submit my PR as well, or should I review #579 instead? Either way is fine with me, I just wanted to clarify since I'd offered to work on this.