FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Release 1.9] Stubtest: ignore a new protocol dunder (#16895) by cdce8p · Pull Request #16899 · python/mypy · GitHub

Repository navigation

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

Merged
JelleZijlstra merged 1 commit into
python:release-1.9.0from
cdce8p:cherry-pick-stubtest
Feb 10, 2024
Merged

JelleZijlstra merged 1 commit into
python:release-1.9.0from
cdce8p:cherry-pick-stubtest

Conversation

cdce8p commented Feb 10, 2024

Copy link
Copy Markdown
Collaborator

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 changed the base branch from master to release-1.9.0 February 10, 2024 06:01
cdce8p closed this Feb 10, 2024
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 commented Feb 10, 2024

Copy link
Copy Markdown
Collaborator Author

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

Copy link
Copy Markdown
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 commented Feb 10, 2024

Copy link
Copy Markdown
Collaborator Author

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 merged commit 6615cab into python:release-1.9.0 Feb 10, 2024

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
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 deleted the cherry-pick-stubtest branch February 10, 2024 16:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL