Skip to content

Remove deprecated st.experimental_user command#13626

Merged
lukasmasuch merged 1 commit intodevelopfrom
lukasmasuch/rm-experimental-user
Jan 19, 2026
Merged

Remove deprecated st.experimental_user command#13626
lukasmasuch merged 1 commit intodevelopfrom
lukasmasuch/rm-experimental-user

Conversation

@lukasmasuch
Copy link
Copy Markdown
Collaborator

Describe your changes

Removes the deprecated st.experimental_user command alias along with its deprecation warning infrastructure. The st.user command remains as the primary user info API.

Testing Plan

  • Existing test for st.user functionality remains in place
  • Removed deprecation warning test that is no longer applicable
  • All Python syntax validated

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

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]>
Copilot AI review requested due to automatic review settings January 17, 2026 14:33
@snyk-io
Copy link
Copy Markdown
Contributor

snyk-io bot commented Jan 17, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jan 17, 2026

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-13626/streamlit-1.53.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-13626.streamlit.app (☁️ Deploy here if not accessible)

@lukasmasuch lukasmasuch changed the title Remove st.experimental_user command Remove deprecated st.experimental_user command Jan 17, 2026
@lukasmasuch lukasmasuch added security-assessment-completed change:other PR contains other type of change change:breaking PR contains breaking change that affects backwards compatibility impact:users PR changes affect end users change:refactor PR contains code refactoring without behavior change and removed change:other PR contains other type of change labels Jan 17, 2026
@lukasmasuch
Copy link
Copy Markdown
Collaborator Author

@cursor review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_user and DeprecatedUserInfoProxy from the public API in lib/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_user from the test constants list in lib/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

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no bugs!

@github-actions
Copy link
Copy Markdown
Contributor

📉 Frontend coverage change detected

The frontend unit test (vitest) coverage has decreased by 0.0500%

  • Current PR: 86.5200% (12899 lines, 1738 missed)
  • Latest develop: 86.5700% (12899 lines, 1732 missed)

💡 Consider adding more unit tests to maintain or improve coverage.

📊 View detailed coverage comparison

Copy link
Copy Markdown
Collaborator

@sfc-gh-lwilby sfc-gh-lwilby left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lukasmasuch lukasmasuch merged commit 4ff5f0c into develop Jan 19, 2026
94 of 96 checks passed
@lukasmasuch lukasmasuch deleted the lukasmasuch/rm-experimental-user branch January 19, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:breaking PR contains breaking change that affects backwards compatibility change:refactor PR contains code refactoring without behavior change impact:users PR changes affect end users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants