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

4.4.1 traceback with python 3.5.2 #286

Closed
adam-stokes opened this issue Sep 17, 2018 · 5 comments
Closed

4.4.1 traceback with python 3.5.2 #286

adam-stokes opened this issue Sep 17, 2018 · 5 comments

Comments

@adam-stokes
Copy link

Describe the bug

4.4.1 ends in traceback with python 3.5.x

    from multidict import istr
  File "/run/code/.tox/py3/lib/python3.5/site-packages/multidict/__init__.py", line 18, in <module>
    from ._abc import MultiMapping, MutableMultiMapping
  File "/run/code/.tox/py3/lib/python3.5/site-packages/multidict/_abc.py", line 37, in <module>
    class MutableMultiMapping(MultiMapping[_T], MutableMapping[str, _T]):
  File "/run/code/.tox/py3/lib/python3.5/site-packages/multidict/_abc.py", line 44, in MutableMultiMapping
    def extend(self, *args: _Arg[_T], **kwargs: _T) -> None:
  File "/usr/lib/python3.5/typing.py", line 546, in __getitem__
    "Cannot subscript an existing Union. Use Union[u, t] instead.")
TypeError: Cannot subscript an existing Union. Use Union[u, t] instead.

To Reproduce

Expected behavior

Logs/tracebacks

Your version of the Python

3.5.2

Your version of the multidict distribution

4.4.1

Additional context

@sergeychibunin
Copy link

I have the same bug.

ubuntu 16.04
python 3.5.2

@asvetlov
Copy link
Member

The problem was fixed by Python 3.5.3
Please upgrade python version or use older multidict instead

@webknjaz
Copy link
Member

@asvetlov
Copy link
Member

Give me some time.
Maybe we can keep old pythons support

@asvetlov
Copy link
Member

Fixed by #289

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants