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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove branching imports and always import from typing_extensions #4699

Merged
merged 1 commit into from May 10, 2022

Conversation

vdonato
Copy link
Collaborator

@vdonato vdonato commented May 6, 2022

馃摎 Context

We recently decided that we might as well always have the typing_extensions module be a
dependency (vs before, where we conditionally installed it depending on the user's Python
version). See the comment thread in this PR for more context: #4657

Since we decided this, some of the weird branching import code that we currently have is now
unnecessary.

  • What kind of change does this PR introduce?

    • Refactoring

@vdonato vdonato force-pushed the remove-some-branching-imports branch from 2b8e265 to a207485 Compare May 10, 2022 02:14
@vdonato vdonato merged commit af5a25b into streamlit:develop May 10, 2022
@vdonato vdonato deleted the remove-some-branching-imports branch May 10, 2022 18:20
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