Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in README example #86

Open
michaelcosley opened this issue Jul 6, 2024 · 0 comments
Open

Error in README example #86

michaelcosley opened this issue Jul 6, 2024 · 0 comments

Comments

@michaelcosley
Copy link

I believe there is a small/minor error in one of the examples shown in the README in one of the checker examples.

from validator_collection import checkers

result = validators.is_integer('this is an invalid variable name')
# result will be False

The issue with this code is that checkers.is_integer should be called, rather than validators.is_integer

Fixed example:

from validator_collection import checkers

result = checkers.is_integer('this is an invalid variable name')
# result will be False

I verified this issue by running the original code section which returns a "NameError" when run, and I verified the fixed code section now runs without a NameError.

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

No branches or pull requests

1 participant