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

Type hint float on metrics calls #1745

Merged
merged 1 commit into from
May 28, 2024
Merged

Type hint float on metrics calls #1745

merged 1 commit into from
May 28, 2024

Conversation

stayallive
Copy link
Collaborator

We can safely type hint float in these methods since even in strict typing you can pass an integer to a float parameter. This will allow IDE's to better complain if you pass anything that is not a number to this method. Passing an integer or float will work without complaints of course 😄

@cleptric cleptric merged commit 7a51be0 into master May 28, 2024
31 checks passed
@cleptric cleptric deleted the typehints branch May 28, 2024 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants