pylint-bot / pylint-unofficial

UNOFFICIAL playground for pylint github migration
0 stars 0 forks source link

Add new checks for the new coroutines added in PEP 492 and Python 3.5 #654

Open pylint-bot opened 9 years ago

pylint-bot commented 9 years ago

Originally reported by: Claudiu Popa (BitBucket: PCManticore, GitHub: @PCManticore)


Would be useful to have some of these at least:

  1. is is a syntax error to have yield or yield from in a coroutine
  2. await accepts only an awaitable
  3. type error if await returns anything else than an iterator
  4. syntax error if await is used outside of an async def
  5. aenter and aexit must return an awaitable
  6. syntax error to use async with out side of async def
  7. error to pass an object without anter and aexit to async with

Similar to for async for.