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])