Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3.7.1 has incorrect NoReturn handling #134

Closed
sobolevn opened this issue Aug 17, 2019 · 0 comments
Closed

python3.7.1 has incorrect NoReturn handling #134

sobolevn opened this issue Aug 17, 2019 · 0 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@sobolevn
Copy link
Member

_____________________ ERROR collecting returns/__init__.py _____________________
returns/__init__.py:16: in <module>
    from returns.converters import maybe_to_result, result_to_maybe
returns/converters.py:7: in <module>
    from returns.result import Failure, Result, Success
returns/result.py:245: in <module>
    ) -> Result[_ValueType, NoReturn]:
/opt/python/3.7.1/lib/python3.7/typing.py:251: in inner
    return func(*args, **kwds)
/opt/python/3.7.1/lib/python3.7/typing.py:824: in __class_getitem__
    params = tuple(_type_check(p, msg) for p in params)
/opt/python/3.7.1/lib/python3.7/typing.py:824: in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
/opt/python/3.7.1/lib/python3.7/typing.py:135: in _type_check
    raise TypeError(f"Plain {arg} is not valid as type argument")
E   TypeError: Plain typing.NoReturn is not valid as type argument

There's nothing I can do.
Upgrade to 3.7.3+

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Development

No branches or pull requests

1 participant