Instagram / MonkeyType

A Python library that generates static type annotations by collecting runtime types
Other
4.74k stars 170 forks source link

Support for parsing PEP 498 Literal String Interpolations #70

Closed kageurufu closed 6 years ago

kageurufu commented 6 years ago

https://www.python.org/dev/peps/pep-0498/

def a(b):
    return f'b == {b}'

Currently, monkeytype errors on apply with

error: .../monkey/test.py: Cannot parse: 2:12:     return f'b == {b}'
kageurufu commented 6 years ago

Determined this was an issue with retype and python below 3.6.2, https://bugs.python.org/issue23894