Skip to content

Commit

Permalink
Don't put stringified annotations in stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
ambv authored and carljm committed Nov 6, 2019
1 parent f0f05cc commit bb4cbe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monkeytype/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,8 @@ def render_annotation(anno: Any) -> str:
rendered = anno.__qualname__
else:
rendered = anno.__module__ + '.' + anno.__qualname__
elif isinstance(anno, str):
rendered = anno
else:
rendered = repr(anno)

Expand Down

0 comments on commit bb4cbe5

Please sign in to comment.