diff --git a/python/paddle_serving_app/utils/arr2image.py b/python/paddle_serving_app/utils/arr2image.py index bbaad99497d68b1f60bc675a638b98b0116573e0..295ed5cc784b3c3403f3fb0edb029314d09659e0 100644 --- a/python/paddle_serving_app/utils/arr2image.py +++ b/python/paddle_serving_app/utils/arr2image.py @@ -11,10 +11,12 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# pylint: disable=doc-string-missing import cv2 import yaml + class Arr2Image(object): """ from numpy array image(jpeg) to cv::Mat image @@ -28,4 +30,4 @@ class Arr2Image(object): return img def __repr__(self): - return self.__class__.__name__ + "()" \ No newline at end of file + return self.__class__.__name__ + "()" diff --git a/python/util.py b/python/util.py index 32dc2993077d1a73b880620549d924b54c1c3bf8..ef7cd6632855266096decc3139ca72a46ead6d2b 100644 --- a/python/util.py +++ b/python/util.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. +# pylint: disable=doc-string-missing from pkg_resources import DistributionNotFound, get_distribution from grpc_tools import protoc