Skip to content
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

[Release 1.9] Stubtest: ignore a new protocol dunder (#16895) #16899

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

cdce8p
Copy link
Collaborator

@cdce8p cdce8p commented Feb 10, 2024

This is added to all protocol classes on Python 3.12.2+ (it was added in a patch release of 3.12 as part of a bugfix). There's no reason why you'd want to explicitly include it in a stub (and doing so would lead the type checker to incorrectly conclude that you wanted a member literally called __non_callable_proto_members__)

Cf. python/typeshed#11384 and python/typeshed#11383

(cherry picked from commit 517f5ae)

@cdce8p cdce8p changed the base branch from master to release-1.9.0 February 10, 2024 06:01
@cdce8p cdce8p closed this Feb 10, 2024
@cdce8p cdce8p reopened this Feb 10, 2024
This is added to all protocol classes on Python 3.12.2+ (it was added in
a patch release of 3.12 as part of a bugfix). There's no reason why
you'd want to explicitly include it in a stub (and doing so would lead
the type checker to incorrectly conclude that you wanted a member
literally called `__non_callable_proto_members__`)

Cf. python/typeshed#11384 and
python/typeshed#11383

(cherry picked from commit 517f5ae)
@cdce8p
Copy link
Collaborator Author

cdce8p commented Feb 10, 2024

Windows test seems to be flaky again. Would need a restart.

@JelleZijlstra
Copy link
Member

I retried once and it failed again, and it also failed on #16900 with a similar traceback (infinite recursion in shutil). This might be a real problem though it's unlikely to be related to this PR.

@cdce8p
Copy link
Collaborator Author

cdce8p commented Feb 10, 2024

I retried once and it failed again, and it also failed on #16900 with a similar traceback (infinite recursion in shutil). This might be a real problem though it's unlikely to be related to this PR.

Yeah. I've seen this as well on some other PRs, #16897 for example. It's always one of the mypy/test/testdaemon.py tests with windows-64 and a max recursion error. Not sure though what's really causing the issue. I did a small run on my fork just for the testdeamon.py tests and everything seems to be fine. That would leave some differences in the action runners which could sometimes trigger it 🤔

https://github.com/cdce8p/mypy/actions/runs/7855994392/job/21438300911#step:8:21

Anyway, I'm not sure this should block any of the PRs. Those could be merged as is, IMO.

@JelleZijlstra JelleZijlstra merged commit 6615cab into python:release-1.9.0 Feb 10, 2024
13 checks passed
@AlexWaygood
Copy link
Member

I retried once and it failed again, and it also failed on #16900 with a similar traceback (infinite recursion in shutil). This might be a real problem though it's unlikely to be related to this PR.

IIRC it's a windows-only bug in the stdlib that only sometimes occurs (some kind of race condition), and was fixed on newer versions of Python but not backported as far as py38. Don't quote me on that though.

@JelleZijlstra
Copy link
Member

Anyway, I'm not sure this should block any of the PRs. Those could be merged as is, IMO.

Probably true, but the second retry succeeded anyway :)

@cdce8p cdce8p deleted the cherry-pick-stubtest branch February 10, 2024 16:29
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