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

Change pydecimal type hint for min_value, max_value to numbers.Number #2059

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

parsariyahi
Copy link
Contributor

What does this change

infaker\providers\python\__init__.py method pydecimal I changed the type hints for min_value, max_value to numbers.Number

What was wrong

#2041 issue in mypy for type hints

How this fixes it

This PR will use numbers.Number instead of float for type hint

@parsariyahi parsariyahi changed the title Change pydecimal type hint for min_value, max_value to numbers.Number #2041 Change pydecimal type hint for min_value, max_value to numbers.Number Jun 10, 2024
Copy link
Collaborator

@fcurella fcurella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@fcurella fcurella merged commit d0bfbfb into joke2k:master Jun 20, 2024
28 checks passed
@sshishov
Copy link
Contributor

@parsariyahi @fcurella You guys forgot to regenerate stubs files... The file proxy.pyi still having the old signature.

Also it seems that this issue can be closed (at least for me all mypy errors disappeared): #2041

@fcurella
Copy link
Collaborator

@sshishov I see the types updated. What version of Faker are you running?

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.

3 participants