Skip to content

Fix ty linting: explicitly import streamlit.errors submodule - #373

Open
blackary wants to merge 1 commit into
mainfrom
fix/ty-linting-errors
Open

Fix ty linting: explicitly import streamlit.errors submodule#373
blackary wants to merge 1 commit into
mainfrom
fix/ty-linting-errors

Conversation

@blackary

Copy link
Copy Markdown
Collaborator

Summary

Fixes a ty type checker warning in resizable_columns/__init__.py:

```
warning[possibly-missing-submodule]: Submodule errors might not have been imported
--> src/streamlit_extras/resizable_columns/init.py:76:15
help: Consider explicitly importing streamlit.errors
```

Change

Added import streamlit.errors alongside the existing import streamlit as st to satisfy the type checker when accessing st.errors.StreamlitAPIException.

Quality Checks

  • uv run ruff check — ✅ All checks passed
  • uv run ruff format --check — ✅ 59 files already formatted
  • uv run mypy — ✅ No issues found in 55 source files
  • uv run ty check — ✅ All checks passed

Add explicit import of streamlit.errors to resolve ty warning:
  possibly-missing-submodule: Submodule errors might not have been imported
in resizable_columns/__init__.py when accessing st.errors.StreamlitAPIException.
@netlify

netlify Bot commented May 26, 2026

Copy link
Copy Markdown

Deploy Preview for streamlit-extras-docs ready!

Name Link
🔨 Latest commit 4d8a836
🔍 Latest deploy log https://app.netlify.com/projects/streamlit-extras-docs/deploys/6a15a4c77a8951000883b667
😎 Deploy Preview https://deploy-preview-373--streamlit-extras-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@blackary
blackary marked this pull request as ready for review May 26, 2026 15:20
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.

2 participants