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
Where afunc is a function (not a coroutine), which return None. And await None raise a TypeError exception.
So there is no bug here, just an exception raised.
I agree (though AFAICT it should be afunc(6) but that's besides the point). I'm closing it as a non-CPython issue. More precisely, if you were to unroll the construction, callback_func would be equivalent to:
Bug report
Bug description:
The error message is:
TypeError: object NoneType can't be used in 'await' expression
The object is of type function , just not async function.
CPython versions tested on:
3.11
Operating systems tested on:
Other
The text was updated successfully, but these errors were encountered: