(anno)
| 881 | |
| 882 | |
| 883 | def _stringify_single(anno): |
| 884 | if anno is ...: |
| 885 | return "..." |
| 886 | # We have to handle str specially to support PEP 563 stringified annotations. |
| 887 | elif isinstance(anno, str): |
| 888 | return anno |
| 889 | elif isinstance(anno, _Template): |
| 890 | return ast.unparse(_template_to_ast(anno)) |
| 891 | else: |
| 892 | return repr(anno) |
| 893 | |
| 894 | |
| 895 | def get_annotate_from_class_namespace(obj): |
no test coverage detected
searching dependent graphs…