diff options
Diffstat (limited to 'tests/run/cython3.pyx')
-rw-r--r-- | tests/run/cython3.pyx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/run/cython3.pyx b/tests/run/cython3.pyx index cbe0797fd..d8caa1448 100644 --- a/tests/run/cython3.pyx +++ b/tests/run/cython3.pyx @@ -630,3 +630,11 @@ async def async_def_annotations(x: 'int') -> 'float': int """ return float(x) + + +def repr_returns_str(x) -> str: + """ + >>> repr_returns_str(123) + '123' + """ + return repr(x) |