Thanks to visit codestin.com
Credit goes to github.com

Skip to content

random: use bound methods #7408

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

Merged
merged 3 commits into from
Mar 1, 2022
Merged

random: use bound methods #7408

merged 3 commits into from
Mar 1, 2022

Conversation

hauntsaninja
Copy link
Collaborator

@hauntsaninja hauntsaninja commented Mar 1, 2022

Suggested by Akuli in #7400

Matches runtime better and minimises duplicated definitions.

We use bound methods in a couple other places, e.g. multiprocessing and pkg_resources.
pytype only added support for bound methods about a year ago, which is presumably
why the stubs weren't already this way.

Suggested by Akuli in python#7400

Matches runtime better and minimises duplicated definitions.

pytype only added support for bound methods about a year ago. We use
them in a couple other places, e.g. multiprocessing and pkg_resources
@github-actions

This comment has been minimized.

hauntsaninja and others added 2 commits February 28, 2022 21:40
@github-actions

This comment has been minimized.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Mar 1, 2022

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit ebcfe7b into python:master Mar 1, 2022
@hauntsaninja hauntsaninja deleted the rand2 branch March 1, 2022 09:09
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