Skip to content

Commit 0078c99

Browse files
committed
repr improvements
1 parent 78eac8f commit 0078c99

40 files changed

+570
-420
lines changed

documentation/reference/gimpformats/GimpChannel.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
77
- [Gimpchannel](#gimpchannel)
88
- [GimpChannel](#gimpchannel)
9-
- [GimpChannel().__repr__](#gimpchannel()__repr__)
109
- [GimpChannel().__str__](#gimpchannel()__str__)
1110
- [GimpChannel().decode](#gimpchannel()decode)
1211
- [GimpChannel().encode](#gimpchannel()encode)
12+
- [GimpChannel().full_repr](#gimpchannel()full_repr)
1313
- [GimpChannel().image](#gimpchannel()image)
1414
- [GimpChannel().image](#gimpchannel()image-1)
1515
- [GimpChannel().imageHierarchy](#gimpchannel()imagehierarchy)
@@ -33,18 +33,6 @@ class GimpChannel(GimpIOBase):
3333

3434
- [GimpIOBase](./GimpIOBase.md#gimpiobase)
3535

36-
### GimpChannel().__repr__
37-
38-
[Show source in GimpChannel.py:99](../../../gimpformats/GimpChannel.py#L99)
39-
40-
Get a textual representation of this object.
41-
42-
#### Signature
43-
44-
```python
45-
def __repr__(self, indent: int = 0) -> str: ...
46-
```
47-
4836
### GimpChannel().__str__
4937

5038
[Show source in GimpChannel.py:95](../../../gimpformats/GimpChannel.py#L95)
@@ -92,6 +80,18 @@ Encode this object to a byte buffer.
9280
def encode(self) -> bytearray: ...
9381
```
9482

83+
### GimpChannel().full_repr
84+
85+
[Show source in GimpChannel.py:99](../../../gimpformats/GimpChannel.py#L99)
86+
87+
Get a textual representation of this object.
88+
89+
#### Signature
90+
91+
```python
92+
def full_repr(self, indent: int = 0) -> str: ...
93+
```
94+
9595
### GimpChannel().image
9696

9797
[Show source in GimpChannel.py:71](../../../gimpformats/GimpChannel.py#L71)

documentation/reference/gimpformats/GimpGbrBrush.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
77
- [Gimpgbrbrush](#gimpgbrbrush)
88
- [GimpGbrBrush](#gimpgbrbrush)
9-
- [GimpGbrBrush().__repr__](#gimpgbrbrush()__repr__)
109
- [GimpGbrBrush().__str__](#gimpgbrbrush()__str__)
1110
- [GimpGbrBrush().decode](#gimpgbrbrush()decode)
1211
- [GimpGbrBrush().encode](#gimpgbrbrush()encode)
12+
- [GimpGbrBrush().full_repr](#gimpgbrbrush()full_repr)
1313
- [GimpGbrBrush().image](#gimpgbrbrush()image)
1414
- [GimpGbrBrush().load](#gimpgbrbrush()load)
1515
- [GimpGbrBrush().save](#gimpgbrbrush()save)
@@ -31,18 +31,6 @@ class GimpGbrBrush:
3131
def __init__(self, fileName: str | None = None) -> None: ...
3232
```
3333

34-
### GimpGbrBrush().__repr__
35-
36-
[Show source in GimpGbrBrush.py:149](../../../gimpformats/GimpGbrBrush.py#L149)
37-
38-
Get a textual representation of this object.
39-
40-
#### Signature
41-
42-
```python
43-
def __repr__(self, indent: int = 0) -> str: ...
44-
```
45-
4634
### GimpGbrBrush().__str__
4735

4836
[Show source in GimpGbrBrush.py:145](../../../gimpformats/GimpGbrBrush.py#L145)
@@ -96,6 +84,18 @@ Encode this object to byte array.
9684
def encode(self) -> bytearray: ...
9785
```
9886

87+
### GimpGbrBrush().full_repr
88+
89+
[Show source in GimpGbrBrush.py:149](../../../gimpformats/GimpGbrBrush.py#L149)
90+
91+
Get a textual representation of this object.
92+
93+
#### Signature
94+
95+
```python
96+
def full_repr(self, indent: int = 0) -> str: ...
97+
```
98+
9999
### GimpGbrBrush().image
100100

101101
[Show source in GimpGbrBrush.py:115](../../../gimpformats/GimpGbrBrush.py#L115)

documentation/reference/gimpformats/GimpGgrGradient.md

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66
77
- [Gimpggrgradient](#gimpggrgradient)
88
- [GimpGgrGradient](#gimpggrgradient)
9-
- [GimpGgrGradient().__repr__](#gimpggrgradient()__repr__)
109
- [GimpGgrGradient().__str__](#gimpggrgradient()__str__)
1110
- [GimpGgrGradient().decode](#gimpggrgradient()decode)
1211
- [GimpGgrGradient().encode](#gimpggrgradient()encode)
12+
- [GimpGgrGradient().full_repr](#gimpggrgradient()full_repr)
1313
- [GimpGgrGradient().getColor](#gimpggrgradient()getcolor)
1414
- [GimpGgrGradient().load](#gimpggrgradient()load)
1515
- [GimpGgrGradient().save](#gimpggrgradient()save)
1616
- [GradientSegment](#gradientsegment)
17-
- [GradientSegment().__repr__](#gradientsegment()__repr__)
1817
- [GradientSegment().__str__](#gradientsegment()__str__)
1918
- [GradientSegment().decode](#gradientsegment()decode)
2019
- [GradientSegment().encode](#gradientsegment()encode)
20+
- [GradientSegment().full_repr](#gradientsegment()full_repr)
2121
- [GradientSegment().getColor](#gradientsegment()getcolor)
2222

2323
## GimpGgrGradient
2424

25-
[Show source in GimpGgrGradient.py:124](../../../gimpformats/GimpGgrGradient.py#L124)
25+
[Show source in GimpGgrGradient.py:122](../../../gimpformats/GimpGgrGradient.py#L122)
2626

2727
Gimp color gradient.
2828

@@ -36,21 +36,9 @@ class GimpGgrGradient:
3636
def __init__(self, fileName: str | None = None) -> None: ...
3737
```
3838

39-
### GimpGgrGradient().__repr__
40-
41-
[Show source in GimpGgrGradient.py:201](../../../gimpformats/GimpGgrGradient.py#L201)
42-
43-
Get a textual representation of this object.
44-
45-
#### Signature
46-
47-
```python
48-
def __repr__(self, indent: int = 0) -> str: ...
49-
```
50-
5139
### GimpGgrGradient().__str__
5240

53-
[Show source in GimpGgrGradient.py:197](../../../gimpformats/GimpGgrGradient.py#L197)
41+
[Show source in GimpGgrGradient.py:194](../../../gimpformats/GimpGgrGradient.py#L194)
5442

5543
Get a textual representation of this object.
5644

@@ -62,7 +50,7 @@ def __str__(self) -> str: ...
6250

6351
### GimpGgrGradient().decode
6452

65-
[Show source in GimpGgrGradient.py:153](../../../gimpformats/GimpGgrGradient.py#L153)
53+
[Show source in GimpGgrGradient.py:151](../../../gimpformats/GimpGgrGradient.py#L151)
6654

6755
Decode a byte buffer.
6856

@@ -84,7 +72,7 @@ def decode(self, dataIn: bytes) -> None: ...
8472

8573
### GimpGgrGradient().encode
8674

87-
[Show source in GimpGgrGradient.py:177](../../../gimpformats/GimpGgrGradient.py#L177)
75+
[Show source in GimpGgrGradient.py:175](../../../gimpformats/GimpGgrGradient.py#L175)
8876

8977
Encode this to bytes.
9078

@@ -94,9 +82,21 @@ Encode this to bytes.
9482
def encode(self) -> bytes: ...
9583
```
9684

85+
### GimpGgrGradient().full_repr
86+
87+
[Show source in GimpGgrGradient.py:198](../../../gimpformats/GimpGgrGradient.py#L198)
88+
89+
Get a textual representation of this object.
90+
91+
#### Signature
92+
93+
```python
94+
def full_repr(self, indent: int = 0) -> str: ...
95+
```
96+
9797
### GimpGgrGradient().getColor
9898

99-
[Show source in GimpGgrGradient.py:190](../../../gimpformats/GimpGgrGradient.py#L190)
99+
[Show source in GimpGgrGradient.py:187](../../../gimpformats/GimpGgrGradient.py#L187)
100100

101101
Given a decimal percent (1.0 = 100%) retrieve...
102102

@@ -110,7 +110,7 @@ def getColor(self, percent: float) -> NoReturn: ...
110110

111111
### GimpGgrGradient().load
112112

113-
[Show source in GimpGgrGradient.py:145](../../../gimpformats/GimpGgrGradient.py#L145)
113+
[Show source in GimpGgrGradient.py:143](../../../gimpformats/GimpGgrGradient.py#L143)
114114

115115
Load a gimp file.
116116

@@ -126,14 +126,14 @@ def load(self, fileName: BytesIO | str) -> None: ...
126126

127127
### GimpGgrGradient().save
128128

129-
[Show source in GimpGgrGradient.py:186](../../../gimpformats/GimpGgrGradient.py#L186)
129+
[Show source in GimpGgrGradient.py:183](../../../gimpformats/GimpGgrGradient.py#L183)
130130

131131
Save this gimp image to a file.
132132

133133
#### Signature
134134

135135
```python
136-
def save(self, tofileName: str | BytesIO | None = None) -> None: ...
136+
def save(self, tofileName: str | BytesIO) -> None: ...
137137
```
138138

139139

@@ -151,21 +151,9 @@ class GradientSegment:
151151
def __init__(self) -> None: ...
152152
```
153153

154-
### GradientSegment().__repr__
155-
156-
[Show source in GimpGgrGradient.py:105](../../../gimpformats/GimpGgrGradient.py#L105)
157-
158-
Get a textual representation of this object.
159-
160-
#### Signature
161-
162-
```python
163-
def __repr__(self, indent: int = 0) -> str: ...
164-
```
165-
166154
### GradientSegment().__str__
167155

168-
[Show source in GimpGgrGradient.py:101](../../../gimpformats/GimpGgrGradient.py#L101)
156+
[Show source in GimpGgrGradient.py:99](../../../gimpformats/GimpGgrGradient.py#L99)
169157

170158
Get a textual representation of this object.
171159

@@ -209,6 +197,18 @@ Encode this to a string.
209197
def encode(self) -> str: ...
210198
```
211199

200+
### GradientSegment().full_repr
201+
202+
[Show source in GimpGgrGradient.py:103](../../../gimpformats/GimpGgrGradient.py#L103)
203+
204+
Get a textual representation of this object.
205+
206+
#### Signature
207+
208+
```python
209+
def full_repr(self, indent: int = 0) -> str: ...
210+
```
211+
212212
### GradientSegment().getColor
213213

214214
[Show source in GimpGgrGradient.py:44](../../../gimpformats/GimpGgrGradient.py#L44)

documentation/reference/gimpformats/GimpGihBrushSet.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
77
- [Gimpgihbrushset](#gimpgihbrushset)
88
- [GimpGihBrushSet](#gimpgihbrushset)
9-
- [GimpGihBrushSet().__repr__](#gimpgihbrushset()__repr__)
109
- [GimpGihBrushSet().__str__](#gimpgihbrushset()__str__)
1110
- [GimpGihBrushSet().decode](#gimpgihbrushset()decode)
1211
- [GimpGihBrushSet().encode](#gimpgihbrushset()encode)
12+
- [GimpGihBrushSet().full_repr](#gimpgihbrushset()full_repr)
1313
- [GimpGihBrushSet().load](#gimpgihbrushset()load)
1414
- [GimpGihBrushSet().save](#gimpgihbrushset()save)
1515

@@ -32,18 +32,6 @@ class GimpGihBrushSet:
3232
def __init__(self, fileName: str | None = None) -> None: ...
3333
```
3434

35-
### GimpGihBrushSet().__repr__
36-
37-
[Show source in GimpGihBrushSet.py:103](../../../gimpformats/GimpGihBrushSet.py#L103)
38-
39-
Get a textual representation of this object.
40-
41-
#### Signature
42-
43-
```python
44-
def __repr__(self, indent: int = 0) -> str: ...
45-
```
46-
4735
### GimpGihBrushSet().__str__
4836

4937
[Show source in GimpGihBrushSet.py:99](../../../gimpformats/GimpGihBrushSet.py#L99)
@@ -91,6 +79,18 @@ Encode this object to bytes.
9179
def encode(self) -> bytes: ...
9280
```
9381

82+
### GimpGihBrushSet().full_repr
83+
84+
[Show source in GimpGihBrushSet.py:103](../../../gimpformats/GimpGihBrushSet.py#L103)
85+
86+
Get a textual representation of this object.
87+
88+
#### Signature
89+
90+
```python
91+
def full_repr(self, indent: int = 0) -> str: ...
92+
```
93+
9494
### GimpGihBrushSet().load
9595

9696
[Show source in GimpGihBrushSet.py:42](../../../gimpformats/GimpGihBrushSet.py#L42)

0 commit comments

Comments
 (0)