PEP 727: Documentation Metadata in Typing

I’m flattered you consider the idea useful.

I think runtime introspection like this is a very valid use case.

I also think inline docs could make even more sense now to help LLMs understand code.

I intend to keep using and supporting my external third-party version.

I also intend to support for people to use it in their apps and extract that info in FastAPI and Typer.

If it made sense, it would be great if that package could be useful to you as well.

Still, `typing_extensions.Doc` is still available, it will be up to them to decide what to do with it, I just didn’t want my projects to be a blocker if they wanted to remove it after the PEP is no longer going to happen.

Fortunately I just discovered typechat also supports plain strings inside Annotated, so my use case is probably not as strong as I thought.

1 Like

Ha, kinda bold of typechat to reserve the use of plain strings within Annotated :smiley:

3 Likes