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

Syntax error on Python 3.5.6 #34

Open
stsievert opened this issue May 8, 2020 · 1 comment
Open

Syntax error on Python 3.5.6 #34

stsievert opened this issue May 8, 2020 · 1 comment

Comments

@stsievert
Copy link
Member

>>> import caption_contest_data as ccd

throws a syntax error on line 90 of _api.py with this code:

intsList[Union[strint]] = [int(cif c.isnumeric() else c.split("-")[0for c in _ints]
@stsievert
Copy link
Member Author

$ conda create -n py35 python=3.5 numpy pandas scipy
$ conda activate py35
$ python
>>> import caption_contest_data as ccd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/scott/anaconda3/envs/py35/lib/python3.5/site-packages/caption_contest_data/__init__.py", line 3, in <module>
    from ._api import metadata, refresh, responses, summary, summary_ids
  File "/Users/scott/anaconda3/envs/py35/lib/python3.5/site-packages/caption_contest_data/_api.py", line 90
    ints: List[Union[str, int]] = [
        ^
SyntaxError: invalid syntax

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

1 participant