daizutabi / mkapi

A plugin for MkDocs to generate API documentation
https://daizutabi.github.io/mkapi/
MIT License
95 stars 19 forks source link

Request str representation of slice elements in subscripts #44

Closed simbuerg closed 9 months ago

simbuerg commented 3 years ago

This fixes #39 and #36

A subscript's slice can contain a Tuple or a Slice. In the case of a Tuple, we want to make sure that we join only the string representation of our elements, not the actual value, or we fail.

Example: A type annotation of the form Tuple[str, ...] becomes a Subscript that contains the Tuple (str, Ellipsis). Before, the join would crash.