Pylint 2 useless-return fixes (#15677)
This commit is contained in:
1 parent
95dc06cca6
commit
1c42caba76
9 files changed
-12
No files matched your search
@@ -57,7 +57,6 @@ def disable_c_asyncio() -> None:
|
||||
def __init__(self, path_entry: str) -> None:
|
||||
if path_entry != self.PATH_TRIGGER:
|
||||
raise ImportError()
|
||||
return
|
||||
|
||||
def find_module(self, fullname: str, path: Any = None) -> None:
|
||||
"""Find a module."""
|
||||
@@ -65,7 +64,6 @@ def disable_c_asyncio() -> None:
|
||||
# We lint in Py35, exception is introduced in Py36
|
||||
# pylint: disable=undefined-variable
|
||||
raise ModuleNotFoundError() # type: ignore # noqa
|
||||
return None
|
||||
|
||||
sys.path_hooks.append(AsyncioImportFinder)
|
||||
sys.path.insert(0, AsyncioImportFinder.PATH_TRIGGER)
|
||||
|
||||
Reference in new issue
Block a user