Skip to content

Delint __InterlockedIncrement/...Decrement.#832

Merged
junkmd merged 2 commits intoenthought:mainfrom
junkmd:delint_InterlockedIncrementDecrement
Mar 9, 2025
Merged

Delint __InterlockedIncrement/...Decrement.#832
junkmd merged 2 commits intoenthought:mainfrom
junkmd:delint_InterlockedIncrementDecrement

Conversation

@junkmd
Copy link
Copy Markdown
Collaborator

@junkmd junkmd commented Mar 9, 2025

Before the introduction of runtime positional-only parameters using /, it was common practice to use argument names beginning with __ to indicate positional-only parameters.
As a remnant of this practice, type checkers still recognize arguments starting with __ as positional-only.

This change resolves false positives caused by that behavior.

junkmd added 2 commits March 9, 2025 20:01
in `IUnknown_AddRef` and `IUnknown_Release` from `__` prefixes to `_` prefixes.

This resolves linter warnings that mistakenly interpreted the `__` prefix as
the old-style positional-only arguments.
@junkmd junkmd added the typing related to Python static typing system label Mar 9, 2025
@junkmd junkmd added this to the 1.4.11 milestone Mar 9, 2025
junkmd added a commit to junkmd/pywinauto that referenced this pull request Mar 9, 2025
@junkmd junkmd merged commit d0295c4 into enthought:main Mar 9, 2025
@junkmd junkmd deleted the delint_InterlockedIncrementDecrement branch March 9, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

typing related to Python static typing system

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant