Skip to content

Commit

Permalink
Clear up
Browse files Browse the repository at this point in the history
  • Loading branch information
hao.long authored and Hal committed Apr 7, 2020
1 parent c219b81 commit 99a2ed6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/photoshop/_artlayer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/photoshop/_artlayers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 2 additions & 0 deletions src/photoshop/_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 99a2ed6

Please sign in to comment.