Skip to content

Commit a71dfb5

Browse files
committed
Ignore a few pylint warnings
1 parent f235432 commit a71dfb5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src_py/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,18 +328,20 @@ def lazy_import(name):
328328
try:
329329
if numpy_missing:
330330
# Always fails here. Need the error message for MissingModule.reason
331-
import numpy
331+
import numpy # pylint: disable=ungrouped-imports
332332
# Check that module dependencies are not missing, or get error message
333-
import pygame.pixelcopy
333+
import pygame.pixelcopy # pylint: disable=ungrouped-imports
334334
except (ImportError, OSError):
335335
surfarray = MissingModule("surfarray", urgent=0)
336336
else:
337337
surfarray = lazy_import("surfarray")
338338

339339
try:
340340
if numpy_missing:
341-
import numpy
342-
import pygame.mixer
341+
# Always fails here. Need the error message for MissingModule.reason
342+
import numpy # pylint: disable=ungrouped-imports
343+
# Check that module dependencies are not missing, or get error message
344+
import pygame.mixer # pylint: disable=ungrouped-imports
343345
except (ImportError, OSError):
344346
sndarray = MissingModule("sndarray", urgent=0)
345347
else:

0 commit comments

Comments
 (0)