From 99a2ed6ce3cd3f7c9a13a3d65bd98bd33aacc472 Mon Sep 17 00:00:00 2001 From: "hao.long" Date: Wed, 8 Apr 2020 01:07:20 +0800 Subject: [PATCH] Clear up --- src/photoshop/_artlayer.py | 1 + src/photoshop/_artlayers.py | 2 +- src/photoshop/_layers.py | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/photoshop/_artlayer.py b/src/photoshop/_artlayer.py index 34d4fb74..fcd9dba5 100644 --- a/src/photoshop/_artlayer.py +++ b/src/photoshop/_artlayer.py @@ -3,6 +3,7 @@ from photoshop.enumerations import LayerKind +# pylint: disable=too-many-public-methods class ArtLayer(Photoshop): def __init__(self, parent): super().__init__(parent=parent) diff --git a/src/photoshop/_artlayers.py b/src/photoshop/_artlayers.py index 19b0b092..a073c8ac 100644 --- a/src/photoshop/_artlayers.py +++ b/src/photoshop/_artlayers.py @@ -2,7 +2,7 @@ from photoshop._layer import Layer -# pylint: disable=too-many-arguments +# pylint: disable=too-many-public-methods class ArtLayers(Photoshop): def __init__(self, parent): diff --git a/src/photoshop/_layers.py b/src/photoshop/_layers.py index d802ee41..b450e926 100644 --- a/src/photoshop/_layers.py +++ b/src/photoshop/_layers.py @@ -21,6 +21,8 @@ def __getitem__(self, key): if hasattr(item, 'textItem'): # If have text item will be return ArtLayer. return ArtLayer(item) + else: + return Layer(self._layers[key]) except COMError: return Layer(self._layers[key])