Skip to content

Commit 605f430

Browse files
committed
_utils.py: fix pylint and mypy
1 parent 3fb8eb9 commit 605f430

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ warn_no_return = True
2828

2929
# Ignore missing stubs for third-party packages.
3030
# In future, these should be re-enabled if/when stubs for them become available.
31-
[mypy-copyreg,grpc,pluginbase,psutil,pyroaring,ruamel,multiprocessing.forkserver]
31+
[mypy-copyreg,grpc,pluginbase,psutil,pyroaring,ruamel,multiprocessing.forkserver,cython.*]
3232
ignore_missing_imports=True
3333

3434
# Ignore issues with generated files and vendored code

src/buildstream/_utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
This module contains utilities that have been optimized in Cython
2323
"""
2424

25-
import cython
26-
from cython.cimports.cpython.pystate import PyThreadState_SetAsyncExc
27-
from cython.cimports.cpython.ref import PyObject
25+
import cython # pylint: disable=import-error
26+
from cython.cimports.cpython.pystate import PyThreadState_SetAsyncExc # pylint: disable=import-error
27+
from cython.cimports.cpython.ref import PyObject # pylint: disable=import-error
2828
from ._signals import TerminateException
2929

3030

0 commit comments

Comments
 (0)