Skip to content

fix var shadowing #17858

Merged
SaschaCowley merged 1 commit intomasterfrom
fixVarShadowing
Mar 26, 2025
Merged

fix var shadowing #17858
SaschaCowley merged 1 commit intomasterfrom
fixVarShadowing

Conversation

@seanbudd
Copy link
Copy Markdown
Member

Link to issue number:

Raised in #17809 (comment)

Summary of the issue:

There is variable name shadowing for dict in our AutoPropertyType initializers. ABCMeta uses the term namespace instead of dict to avoid this conflict.

Description of user facing changes

None

Description of development approach

replace variable usages

@seanbudd seanbudd requested a review from a team as a code owner March 26, 2025 04:29
@seanbudd seanbudd requested a review from SaschaCowley March 26, 2025 04:29
@SaschaCowley SaschaCowley merged commit 9d60d14 into master Mar 26, 2025
5 checks passed
@SaschaCowley SaschaCowley deleted the fixVarShadowing branch March 26, 2025 05:11
@github-actions github-actions bot added this to the 2025.1 milestone Mar 26, 2025
@CyrilleB79
Copy link
Copy Markdown
Contributor

@seanbudd or @SaschaCowley, for completeness, shouldn't this change have been mentioned in the API breaking changes? I doubt this has a real impact on the API though...

The signature of AutoPropertyType's constructor has changed. Thus it's call with named parameters would break.

@SaschaCowley
Copy link
Copy Markdown
Member

@CyrilleB79 the dict namespace parameter is positional only, so this change makes no difference to callers.

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