Skip to content

Reject non-string input in string validators - #606

Open
SonicHedghog wants to merge 1 commit into
python-validators:masterfrom
SonicHedghog:fix-non-string-validation
Open

SonicHedghog wants to merge 1 commit into
python-validators:masterfrom
SonicHedghog:fix-non-string-validation

Conversation

@SonicHedghog

Copy link
Copy Markdown

Fixes #601.

Adds targeted type guards in email(), hostname(), uuid(), and cron() so wrong-typed input follows the normal ValidationError path instead of leaking AttributeError. No parsing behavior changes; the IP validators stay scoped to #578/#579. Full suite with crypto extra: 1524 passed.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>

This branch has not been deployed

No deployments
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.

email(), hostname(), uuid(), and cron() leak AttributeError for truthy non-string input

1 participant