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:
parent
fe1e761a7a
commit
39b8102ce6
6 changed files with 32 additions and 37 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue