typer icon indicating copy to clipboard operation
typer copied to clipboard

✨ Add support for typing_extensions.Doc (PEP 727)?

Open jeroendecroos opened this issue 1 year ago • 5 comments

I've added tests but not yet documentation. I can add that if this feature has a chance of acceptance.

I've opened a question for this feature here: https://github.com/fastapi/typer/discussions/1110

jeroendecroos avatar Jan 06 '25 21:01 jeroendecroos

📝 Docs preview for commit 8c5430f7040c9f0897dfbee3c0cfd275159b703a at: https://77700f62.typertiangolo.pages.dev

github-actions[bot] avatar Jan 06 '25 21:01 github-actions[bot]

📝 Docs preview for commit b68c1e2437dc385db4dd3e8085b26973e1148d71 at: https://83732f8d.typertiangolo.pages.dev

github-actions[bot] avatar Jan 06 '25 21:01 github-actions[bot]

It seems that this feature would require python >= 3.8 due to the typing_extensions.Doc is only supported for >=4.8.0. Made some small changes to ignore that issue for now to get at least some CI testing to run.

I don't see yet any open issue to deprecate 3.7?

jeroendecroos avatar Jan 06 '25 21:01 jeroendecroos

The PR and discussion for dropping support for Python 3.7 is here: https://github.com/fastapi/typer/pull/830

[Update]: this has now been merged.

svlandeg avatar Jan 07 '25 08:01 svlandeg

This pull request has a merge conflict that needs to be resolved.

github-actions[bot] avatar Sep 01 '25 14:09 github-actions[bot]