Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Disable Pylint false error in numpy_op_signature (#16370)
Browse files Browse the repository at this point in the history
* hot fix to avoid pylint error

* retrigger CI
  • Loading branch information
stu1130 authored and reminisce committed Oct 4, 2019
1 parent 09ae7df commit 626fc32
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions python/mxnet/numpy_op_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 626fc32

Please sign in to comment.