-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Python: Restrict persisted checkpoint deserialization by default #4941
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
1c68a0f
Harden Python checkpoint persistence defaults
747b1e0
fix: resolve mypy no-any-return error in checkpoint encoding
204b117
Simplify find_class return in _RestrictedUnpickler (#4894)
3e40ec4
Address review feedback for #4894: Python: Harden Python checkpoint p…
0a6a169
Restore # noqa: S301 on line 102 of _checkpoint_encoding.py (#4894)
6f9bb58
Address review feedback for #4894: Python: Harden Python checkpoint p…
8e4da79
Address PR review comments on checkpoint encoding (#4894)
dfc8579
Address PR #4941 review comments: fix docstring position and return type
96afb37
Address review feedback for #4894: review comment fixes
089fc3d
Merge remote-tracking branch 'upstream/main' into agent/fix-4894-1
ad2a9f6
fix: use pickle.UnpicklingError in RestrictedUnpickler and improve do…
f0a990b
fix: address PR #4941 review comments for checkpoint encoding
363a096
fix: replace deprecated 'builtin' repo with pre-commit-hooks in pre-c…
889ad10
style: apply pyupgrade formatting to docstring example
5689638
fix: resolve pre-commit hook paths for monorepo git root
0263504
Merge remote-tracking branch 'upstream/main' into agent/fix-4894-1
151ab6b
Fix pre-commit config paths for prek --cd python execution
160fc2b
fix: add builtins:getattr to checkpoint deserialization allowlist
83bca52
Address review feedback for #4894: review comment fixes
1576a46
Merge branch 'main' into agent/fix-4894-1
moonbox3 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.