Bump Python support to min Python 3.6.0 (#25582)
* Bump Python support to min Python 3.6.0 * Fix type
This commit is contained in:
1 parent
fe1e761a7a
commit
39b8102ce6
6 files changed
+32
-37
No files matched your search
@@ -61,9 +61,7 @@ def disable_c_asyncio() -> None:
|
||||
def find_module(self, fullname: str, path: Any = None) -> None:
|
||||
"""Find a module."""
|
||||
if fullname == self.PATH_TRIGGER:
|
||||
# We lint in Py35, exception is introduced in Py36
|
||||
# pylint: disable=undefined-variable
|
||||
raise ModuleNotFoundError() # type: ignore # noqa
|
||||
raise ModuleNotFoundError()
|
||||
|
||||
sys.path_hooks.append(AsyncioImportFinder)
|
||||
sys.path.insert(0, AsyncioImportFinder.PATH_TRIGGER)
|
||||
|
||||
Reference in new issue
Block a user