mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-20 11:47:57 +00:00
disable pylint warning
This commit is contained in:
1 parent
5d4502aaed
commit
a8888aa106
1 file changed
+1
@@ -132,6 +132,7 @@ def import_error(package: str, components: list[str], mocker: MockerFixture) ->
|
||||
import builtins
|
||||
_import = builtins.__import__
|
||||
|
||||
# pylint: disable=redefined-builtin
|
||||
def test_import(name: str, globals: Any, locals: Any, from_list: list[str], level: Any):
|
||||
if name == package and (not components or any(component in from_list for component in components)):
|
||||
raise ImportError
|
||||
|
||||
Reference in new issue
Block a user