Skip to content

Add test interactions for PP572 with --allow-redefinition #19222

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

meows4h
Copy link

@meows4h meows4h commented Jun 3, 2025

This aims to resolve issue #7314 by adding test interactions with the walrus operator (:=) and the --allow-redefinition flag. In order to accomplish what the documentation provides for the flag, it also added some stubs to the float fixtures file to help with this.

Changes:

  • Added new check-pep572-redefinition.test test file
  • Added extra stubs to float.pyi to aid the test file

Fixes #7314

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PEP 572: Test interaction with --allow-redefinition
1 participant