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

Use int-parameters for random.randrange() #3177

Merged
merged 2 commits into from Jun 23, 2022

Conversation

marhoy
Copy link
Contributor

@marhoy marhoy commented Jun 13, 2022

Description

Use integer parameters for random.randrange(). This PR changes all occurences of random.randrange() in a consistent way.

Motivation and Context

Using float parameters generates a DeprecationWarning with Python-3.10:

DeprecationWarning: non-integer arguments to randrange() have been deprecated since Python 3.10 and will be removed in a subsequent version                                                                                                                                      

Have you tested this? If so, how?

"I ran my jobs with this code and it works for me."

@marhoy marhoy requested review from dlstadther and a team as code owners June 13, 2022 17:00
@dlstadther dlstadther merged commit 1205644 into spotify:master Jun 23, 2022
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.

None yet

2 participants