From 626fc32e3b2eaefbb170de656d2587857d8c936e Mon Sep 17 00:00:00 2001 From: Jake Lee Date: Thu, 3 Oct 2019 19:21:50 -0700 Subject: [PATCH] Disable Pylint false error in numpy_op_signature (#16370) * hot fix to avoid pylint error * retrigger CI --- python/mxnet/numpy_op_signature.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/mxnet/numpy_op_signature.py b/python/mxnet/numpy_op_signature.py index e42ba264b37e..cb56f670ed50 100644 --- a/python/mxnet/numpy_op_signature.py +++ b/python/mxnet/numpy_op_signature.py @@ -17,8 +17,8 @@ """Make builtin ops' signatures compatible with NumPy.""" -from __future__ import absolute_import -import sys +from __future__ import absolute_import # pylint: disable=reimported +from sys import version, version_info import warnings from . import _numpy_op_doc from . import numpy as mx_np @@ -55,11 +55,11 @@ def _get_builtin_op(op_name): def _register_op_signatures(): - if sys.version_info.major < 3 or sys.version_info.minor < 5: + if version_info.major < 3 or version_info.minor < 5: warnings.warn('Some mxnet.numpy operator signatures may not be displayed consistently with ' 'their counterparts in the official NumPy package due to too-low Python ' 'version {}. Python >= 3.5 is required to make the signatures display correctly.' - .format(str(sys.version))) + .format(str(version))) return import inspect