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

problem if the string is passed as int #41

Closed
91DarioDev opened this issue Sep 18, 2019 · 1 comment
Closed

problem if the string is passed as int #41

91DarioDev opened this issue Sep 18, 2019 · 1 comment

Comments

@91DarioDev
Copy link

91DarioDev commented Sep 18, 2019

for c in chars:

if the string is passed as int, the function goes in error cause it tries to iterate an integer.
an easy fix is to force the cast as string doing for str(c) ..

@lepture
Copy link
Owner

lepture commented Jul 29, 2023

I've added type hints for the library. It will tell you that you need to pass a string.

@lepture lepture closed this as completed Jul 29, 2023
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

2 participants