Fix type_to_str not taking str
Description
This MR fixes a regression where capabilities.type_to_str() did not take a string as input. Annotations can have (and do always from python 3.14) string type.
Fixes #8 (closed)
Type of change
- Bug fix (non-breaking change which fixes an issue)
Checklist:
- I have performed a self-review of my code
- I have commented my code, particularly in hard-to-understand areas
- I have made corresponding changes to the documentation