You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
async/await checks are too aggressive and even escape type: ignore #2959
The error is this, and it applies even if you add a type: ignore on the affected line: /tmp/foo.py:1: error: 'async' and 'await' will become reserved keywords in Python 3.7
There are two meanings of the term "keyword". Here, async and await will become reserved words of the language. type is just a "keyword argument". This really means that Mandrill will have to change.
Yet until then I agree that it would be nice if we could suppress the warning somehow. That may require a typed-ast change. @ddfisher?
Oops, this is definitely a bug in typed-ast. I accidentally turned a conditional warning into an unconditional error when making some fixes for Python 3.3 compatibility. I don't think it's typed-ast's place to warn about this error, so I'm going to remove it instead.
Activity
JelleZijlstra commentedon Mar 4, 2017
I ran into this too. It might be an issue with typed-ast instead but I haven't looked into details yet.
gvanrossum commentedon Mar 5, 2017
There are two meanings of the term "keyword". Here,
asyncandawaitwill become reserved words of the language.typeis just a "keyword argument". This really means that Mandrill will have to change.Yet until then I agree that it would be nice if we could suppress the warning somehow. That may require a typed-ast change. @ddfisher?
ddfisher commentedon Mar 6, 2017
Oops, this is definitely a bug in typed-ast. I accidentally turned a conditional warning into an unconditional error when making some fixes for Python 3.3 compatibility. I don't think it's typed-ast's place to warn about this error, so I'm going to remove it instead.
ddfisher commentedon Mar 6, 2017
I'll release 1.0.2 to PyPI as soon as the wheels finish building.
ddfisher commentedon Mar 6, 2017
Released typed-ast 1.0.2.