Skip to content

Conversation

Holt59
Copy link
Contributor

@Holt59 Holt59 commented Apr 11, 2025

Fixes #13817

I am not sure if the usage of Self here is allowed or requires some kind of version checking, let me know if that's the case.

This comment has been minimized.

This comment has been minimized.

@Holt59
Copy link
Contributor Author

Holt59 commented Apr 12, 2025

@srittau I changed the PR according to your comment #13817 (comment), but the stubtests now fail. Should I roll-back to the original version of this PR?

@srittau
Copy link
Collaborator

srittau commented Apr 12, 2025

@Holt59 Just adding

# These methods have no default implementation for Python < 3.13.
_pickle.Pickler.persistent_id
_pickle.Unpickler.persistent_load
pickle.Pickler.persistent_id
pickle.Unpickler.persistent_load

to each of stdlib/@tests/stubtest_allowlists/py*.txt (except py313.txt) should work around this.

Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@srittau srittau merged commit 7ffb7e0 into python:main Apr 12, 2025
55 checks passed
mmingyu pushed a commit to mmingyu/typeshed that referenced this pull request May 16, 2025
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.

Invalid typing for Pickler.persistent_id and Unpickler.persistent_load?

2 participants