Skip to content
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

Import Final from typing or typing_extensions depending on the Python version #4692

Merged
merged 1 commit into from May 4, 2022

Conversation

vdonato
Copy link
Collaborator

@vdonato vdonato commented May 4, 2022

📚 Context

I noticed that trying to run streamlit in a fresh wheel running on Python >= 3.8 explodes
since we conditionally install the typing_extensions module, and #4657 imports Final
from typing_extensions unconditionally. This PR fixes this.

  • What kind of change does this PR introduce?

    • Bugfix

🧠 Description of Changes

  • This is a visible (user-facing) change

@vdonato vdonato merged commit 731a314 into streamlit:develop May 4, 2022
@vdonato vdonato deleted the small-type-fixes branch May 4, 2022 22:16
@vdonato vdonato mentioned this pull request May 5, 2022
1 task
tconkling added a commit that referenced this pull request May 10, 2022
* develop: (21 commits)
  Remove branching imports and always import from typing_extensions (#4699)
  Add type annotations for media (#4706)
  Components adjustments (#4694)
  Type annotations for type_util (#4704)
  Add type annotations for utils (#4703)
  Argument types for iframe (#4707)
  Add type annotations for write (#4686)
  Add type annotations for doc_string (#4690)
  Add type annotations for progress (#4688)
  Add type annotations for exception (#4681)
  Add type annotations for plotly_chart (#4684)
  Wrap Markdown text when there's no word break (#4696)
  Add type annotations for __init__.py (#4687)
  Make typing-extensions and unconditional dependency (#4697)
  Add type annotations for balloons (#4679)
  Add type annotations for empty (#4680)
  Add type annotations for json (#4682)
  Add type annotations for layouts (#4683)
  Add type annotations for snow (#4685)
  Import Final from typing or typing_extensions depending on the Python version (#4692)
  ...
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.

None yet

2 participants