Conversation
|
Thanks! This looks like a correct fix. |
|
I came to |
|
Traceback (most recent call last): |
|
This is a high priority bug fix! all new installations of typer are basically broken |
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
|
If there's any way Adafruit can help get this merged and a release made, please @ me! |
|
Confirmed working. Anyone using Poetry for their dependencies can use: [tool.poetry.dependencies]
typer = { git = "https://github.com/madkinsz/typer.git", rev = "b6efa2f" } |
|
@tiangolo any chance you could take a look at this? Thank you |
|
📝 Docs preview for commit b6efa2f at: https://6244897abaa0e80081318186--typertiangolo.netlify.app |
Codecov Report
@@ Coverage Diff @@
## master #375 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 252 252
Lines 5287 5287
=========================================
Hits 5287 5287
Continue to review full report at Codecov.
|
|
Requires a Closing in favor of #380 |
|
Thank you @tiangolo |
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
In 8.1.0 click removed the deprecated `get_terminal_size` function in favor of letting downstream projects import it from shutil. pallets/click#2130 fastapi/typer#375
Some deprecated code was removed in pallets/click#2130 resulting in the failed import of
get_terminal_sizefromclick. Per the recommendation in Click's release notes, we can import fromshutilinstead.get_terminal_sizecan probably be dropped from Typer's interface in the future since it's been dropped from Click's, but I'll leave that decision to a future PR. This change is backwards compatible.See https://click.palletsprojects.com/en/8.1.x/changes/#version-8-1-0
Closes #377