Remove deprecated st.experimental_user command#13626
Merged
lukasmasuch merged 1 commit intodevelopfrom Jan 19, 2026
Merged
Conversation
Remove the deprecated experimental_user alias, its deprecation warning infrastructure, and related tests. The st.user command remains as the primary user info API. Co-Authored-By: Claude <[email protected]>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
Contributor
✅ PR preview is ready!
|
st.experimental_user command
Collaborator
Author
|
@cursor review |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR removes the deprecated st.experimental_user command alias and its associated deprecation warning infrastructure, completing the migration to st.user as the sole user info API.
Changes:
- Removed
experimental_userandDeprecatedUserInfoProxyfrom the public API inlib/streamlit/__init__.py - Removed deprecation warning function and deprecated proxy class from
lib/streamlit/user_info.py - Removed the deprecation warning test from
lib/tests/streamlit/user_info_test.py - Removed
experimental_userfrom the test constants list inlib/tests/streamlit/streamlit_test.py
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
lib/streamlit/__init__.py |
Removed import and instantiation of DeprecatedUserInfoProxy and the experimental_user global variable |
lib/streamlit/user_info.py |
Removed deprecation imports, DeprecatedUserInfoProxy class, warning function, and global warning flag |
lib/tests/streamlit/user_info_test.py |
Removed deprecation warning test while preserving all st.user functionality tests |
lib/tests/streamlit/streamlit_test.py |
Removed experimental_user from the list of expected public API commands |
Contributor
📉 Frontend coverage change detectedThe frontend unit test (vitest) coverage has decreased by 0.0500%
💡 Consider adding more unit tests to maintain or improve coverage. |
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
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.
Describe your changes
Removes the deprecated
st.experimental_usercommand alias along with its deprecation warning infrastructure. Thest.usercommand remains as the primary user info API.Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.