Skip to content

fix typing in baseObject.ScriptableType#17809

Merged
seanbudd merged 1 commit intomasterfrom
fix17744
Mar 26, 2025
Merged

fix typing in baseObject.ScriptableType#17809
seanbudd merged 1 commit intomasterfrom
fix17744

Conversation

@SaschaCowley
Copy link
Copy Markdown
Member

Link to issue number:

Follow-up to 17744

Summary of the issue:

As pointed out in #17744 (comment), the type hint for the dict argument to baseObject.ScriptableType.__new__ is incorrectly [str, Any] since #17744 was merged.

Description of user facing changes

None.

Description of development approach

Corrected the type annotation to dict[str, Any].

Testing strategy:

Automated tests via CI.

Known issues with pull request:

None.

Code Review Checklist:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

@coderabbitai summary

@SaschaCowley SaschaCowley requested a review from a team as a code owner March 11, 2025 03:28
@SaschaCowley SaschaCowley requested a review from seanbudd March 11, 2025 03:28
@seanbudd seanbudd merged commit ca1a009 into master Mar 26, 2025
5 checks passed
@seanbudd seanbudd deleted the fix17744 branch March 26, 2025 00:42
@github-actions github-actions bot added this to the 2025.1 milestone Mar 26, 2025
@seanbudd seanbudd mentioned this pull request Mar 26, 2025
SaschaCowley pushed a commit that referenced this pull request Mar 26, 2025
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
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