Skip to content

Commit af244a3

Browse files
committed
perf: add more docstrings
1 parent 54d8c32 commit af244a3

File tree

15 files changed

+54
-6
lines changed

15 files changed

+54
-6
lines changed

.github/workflows/bumpversion.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ jobs:
2323
github_token: ${{ secrets.GITHUB_TOKEN }}
2424
branch: main
2525
- name: Create release Version
26-
run: gh release create ${{ steps.cz.outputs.version }} --generate-notes
26+
run: gh release create v${{ steps.cz.outputs.version }} --generate-notes
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

photoshop/api/_documents.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
# pylint: disable=too-many-public-methods, too-many-arguments
1111
class Documents(Photoshop):
12+
"""The collection of open documents."""
13+
1214
def __init__(self, parent):
1315
super().__init__(parent=parent)
1416

photoshop/api/_layerComp.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44

55
class LayerComp(Photoshop):
6+
"""A snapshot of a state of the layers in a document (can be used to view different page layouts or compostions)."""
7+
68
def __init__(self, parent):
79
super().__init__(parent=parent)
810

photoshop/api/_layerComps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
class LayerComps(Photoshop):
8+
"""The layer comps collection in this document."""
9+
810
def __init__(self, parent):
911
super().__init__(parent=parent)
1012

photoshop/api/_layers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
# pylint: disable=too-many-public-methods
88
class Layers(Photoshop):
9+
"""The layers collection in the document."""
10+
911
def __init__(self, parent):
1012
super().__init__(parent=parent)
1113

photoshop/api/_measurement_log.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44

55
class MeasurementLog(Photoshop):
6+
"""The log of measurements taken."""
7+
68
def __init__(self, parent):
79
super().__init__(parent=parent)
810

photoshop/api/_text_fonts.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66

77
class TextFonts(Photoshop):
8+
"""An installed font."""
9+
810
def __init__(self, parent=None):
911
super().__init__(parent=parent)
1012

@@ -24,15 +26,15 @@ def length(self):
2426
"""The number pf elements in the collection."""
2527
return len(self._fonts)
2628

27-
def getByName(self, name):
29+
def getByName(self, name: str) -> TextFont:
2830
"""Gets the font by the font name.
2931
3032
Args:
31-
name (str): The name of the font.
33+
name: The name of the font.
3234
3335
3436
Returns:
35-
Font
37+
font instance.
3638
3739
"""
3840
for font in self.app:

photoshop/api/action_descriptor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818

1919

2020
class ActionDescriptor(Photoshop):
21+
"""A record of key-value pairs for actions, such as those included on the Adobe Photoshop Actions menu.
22+
23+
The ActionDescriptor class is part of the Action Manager functionality.
24+
For more details on the Action Manager, see the Photoshop Scripting Guide.
25+
26+
"""
27+
2128
object_name = "ActionDescriptor"
2229

2330
def __init__(self):

photoshop/api/action_list.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,14 @@
99

1010

1111
class ActionList(Photoshop):
12+
"""The list of commands that comprise an Action.
13+
14+
(such as an Action created using the Actions palette in the Adobe Photoshop application).
15+
The action list object is part of the Action Manager functionality.
16+
For details on using the Action Manager, see the Photoshop Scripting Guide.
17+
18+
"""
19+
1220
object_name = "ActionList"
1321

1422
def __init__(self, parent=None):

photoshop/api/action_reference.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414

1515

1616
class ActionReference(Photoshop):
17+
"""Contains data describing a referenced Action.
18+
19+
The action reference object is part of the Action Manager functionality.
20+
For details on using the Action Manager, see the Photoshop Scripting Guide.
21+
22+
"""
23+
1724
object_name = "ActionReference"
1825

1926
def __init__(self, parent=None):

0 commit comments

Comments
 (0)