Closed PatrickMassot closed 2 weeks ago
Thanks for the note! I'll add a lower bound when I get a moment.
Thanks for opening the issue! It has now been resolved in the main branch.
I think this issue is probably too minor to justify a patch release, but whenever there is another release of rich-click, the lower bound will be part of it.
I just ran into trouble trying to use this awesome lib on a computer whose
typing_extensions
was too old. It was impossible to load richclick, with errorImportError: cannot import name 'NotRequired' from 'typing_extensions'
. The solution was to upgradetyping_extensions
on my system.And indeed the pyproject.toml here simply specify a dependency on
typing_extensions
without any version bound. Could you please put a lower bound there?My system was on
3.10.0.2
and indeed the documentation says thatNotRequired
was added in 3.11. There is no version 3.11 on PyPi, it jumps from 3.10 to 4.0. I just checked that upgrading to 4.0.0 allows toimport rich_click
, but I didn’t try to use it. So you could try requiringtyping_extensions>=4.0.0
and this would already be progress.