Open bswck opened 6 months ago
During reading the pip-run code, I raised an eyebrow upon seeing this: https://github.com/jaraco/pip-run/blob/f5c50a4c2a84bc43ed090820d44f2d4bac6cb0c6/pip_run/read-deps.py#L21
Thanks to typing.Annotated being present, there is a modern, type-safe way to do it, like here: https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#add-query-to-annotated-in-the-q-parameter
typing.Annotated
I encountered this issue again today in jaraco/jaraco.home@33fb951.
I'll offer a $50 bounty for an accepted PR on this issue.
I'll take it along with #34. 🚀
During reading the pip-run code, I raised an eyebrow upon seeing this: https://github.com/jaraco/pip-run/blob/f5c50a4c2a84bc43ed090820d44f2d4bac6cb0c6/pip_run/read-deps.py#L21
Thanks to
typing.Annotated
being present, there is a modern, type-safe way to do it, like here: https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#add-query-to-annotated-in-the-q-parameter