Skip to content

build: package the py.typed marker - #65

Merged
sfc-gh-bnisco merged 2 commits into
mainfrom
build/add-py-typed-marker
May 12, 2026
Merged

build: package the py.typed marker#65
sfc-gh-bnisco merged 2 commits into
mainfrom
build/add-py-typed-marker

Conversation

@sfc-gh-bnisco

@sfc-gh-bnisco sfc-gh-bnisco commented May 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the py.typed marker and package it in both wheel and sdist artifacts so type checkers recognize streamlit-bokeh as a typed package
  • exempt .typed files from the license-header check so the standard empty marker file passes repo hooks
  • fix the published package typing issues in streamlit_bokeh so downstream mypy users see the public streamlit_bokeh() signature without internal package errors
  • Supersedes Add py.typed #31 since we have made some substantial packaging changes to this repo since that PR was first opened.

Test plan

  • pre-commit run --all-files
  • python -m build
  • install the built wheel in a clean venv and run a mypy smoke test against a small consumer script

sfc-gh-bnisco and others added 2 commits May 11, 2026 13:28
Ship the PEP 561 marker in both wheel and source distributions so type checkers
recognize the package's inline typing. Exempt .typed files from the license-header
check so the standard empty marker can pass pre-commit.

Co-authored-by: Bulat Shelkhonov <shelbulat@mail.ru>
Co-authored-by: Cursor <cursoragent@cursor.com>
Keep downstream type checkers from surfacing internal errors once the package
ships a PEP 561 marker. This preserves a useful public signature for
streamlit_bokeh() while loosening the internal Streamlit component plumbing
across the v1 and v2 registration paths.

Co-authored-by: Cursor <cursoragent@cursor.com>

@sfc-gh-lmasuch sfc-gh-lmasuch left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-bnisco
sfc-gh-bnisco merged commit 7542603 into main May 12, 2026
4 checks passed
@sfc-gh-bnisco
sfc-gh-bnisco deleted the build/add-py-typed-marker branch May 12, 2026 16:30
@sfc-gh-bnisco sfc-gh-bnisco mentioned this pull request May 12, 2026
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