Karthikeyan Singaravelan <tir.kar...@gmail.com> added the comment:
Thanks for the report. mypy is not part of stdlib and it seems that typeshed doesn't have BaseEventLoop defined in asyncio.__init__.pyi [0] . Adding it to the import removes the error . I guess this needs to be filed in typeshed. There is an issue open for missing asyncio top level functions at https://github.com/python/typeshed/issues/2313 . I would propose closing this as third party. I am adding mypy devs as a confirmation and to follow up the issue with typeshed for updating stub files. [0] https://github.com/python/typeshed/blob/b3aac58db01c6bdc63452066bd9cd5f761e79044/stdlib/3/asyncio/__init__.pyi#L101 ---------- nosy: +gvanrossum, levkivskyi, xtreak _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35987> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com