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

Fix DeprecationWarning for sampling from a set #310

Merged
merged 1 commit into from Oct 12, 2021
Merged

Conversation

bmerry
Copy link
Collaborator

@bmerry bmerry commented Oct 11, 2021

random.sample on a set internally casts it to a list, but since Python
3.9 that has been raising a DeprecationWarning. I've explicitly cast to
list myself now.

random.sample on a set internally casts it to a list, but since Python
3.9 that has been raising a DeprecationWarning. I've explicitly cast to
list myself now.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.04%) to 93.594% when pulling d6938e2 on sample-from-set into 0a310bb on master.

@bmerry bmerry merged commit f753f81 into master Oct 12, 2021
@bmerry bmerry deleted the sample-from-set branch October 12, 2021 08:21
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

3 participants