Skip to content

Fix/input type validation - #6

Merged
Miladkhoshdel merged 2 commits into
mainfrom
fix/input-type-validation
Sep 10, 2026
Merged

Fix/input type validation#6
Miladkhoshdel merged 2 commits into
mainfrom
fix/input-type-validation

Conversation

@Miladkhoshdel

Copy link
Copy Markdown
Owner

Summary

  • Add runtime validation for Luhn inputs
  • Accept only strings and non-boolean integers
  • Reject floats, booleans, None, and other unsupported types
  • Preserve is_valid() behavior by returning False for invalid input
  • Add regression tests for unsupported types

@Miladkhoshdel Miladkhoshdel self-assigned this Sep 10, 2026
@Miladkhoshdel
Miladkhoshdel merged commit 8030898 into main Sep 10, 2026
10 checks passed
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.

1 participant