Skip to content

Commit 342ff60

Browse files
committed
Version 0.6.2: avoid mixing __slots__ and inheritance.
1 parent 8d9ed6e commit 342ff60

File tree

8 files changed

+61
-126
lines changed

8 files changed

+61
-126
lines changed

conda/raffiot/meta.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "raffiot" %}
2-
{% set version = "0.6.1" %}
2+
{% set version = "0.6.2" %}
33

44
package:
55
name: "{{ name|lower }}"

docs/api/index.html

+14-18
Original file line numberDiff line numberDiff line change
@@ -1003,20 +1003,18 @@ <h3>Methods</h3>
10031003
Exception for pattern matching errors (used internally, should NEVER happen).
10041004
&#34;&#34;&#34;
10051005

1006-
__slots__ = &#34;message&#34;
1007-
10081006
message: str</code></pre>
10091007
</details>
10101008
<h3>Ancestors</h3>
10111009
<ul class="hlist">
10121010
<li>builtins.Exception</li>
10131011
<li>builtins.BaseException</li>
10141012
</ul>
1015-
<h3>Instance variables</h3>
1013+
<h3>Class variables</h3>
10161014
<dl>
10171015
<dt id="raffiot.MatchError.message"><code class="name">var <span class="ident">message</span> : str</code></dt>
10181016
<dd>
1019-
<div class="desc"><p>Return an attribute of instance, which is of type owner.</p></div>
1017+
<div class="desc"></div>
10201018
</dd>
10211019
</dl>
10221020
</dd>
@@ -1037,8 +1035,6 @@ <h3>Instance variables</h3>
10371035
Represents
10381036
&#34;&#34;&#34;
10391037

1040-
__slots__ = &#34;exceptions&#34;, &#34;errors&#34;
1041-
10421038
exceptions: List[TracedException]
10431039
&#34;&#34;&#34;
10441040
The list exceptions encountered
@@ -1093,6 +1089,17 @@ <h3>Ancestors</h3>
10931089
<li>builtins.BaseException</li>
10941090
<li>typing.Generic</li>
10951091
</ul>
1092+
<h3>Class variables</h3>
1093+
<dl>
1094+
<dt id="raffiot.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : List[+E]</code></dt>
1095+
<dd>
1096+
<div class="desc"><p>The list of errors encountered</p></div>
1097+
</dd>
1098+
<dt id="raffiot.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : List[<a title="raffiot.utils.TracedException" href="utils.html#raffiot.utils.TracedException">TracedException</a>]</code></dt>
1099+
<dd>
1100+
<div class="desc"><p>The list exceptions encountered</p></div>
1101+
</dd>
1102+
</dl>
10961103
<h3>Static methods</h3>
10971104
<dl>
10981105
<dt id="raffiot.MultipleExceptions.merge"><code class="name flex">
@@ -1141,17 +1148,6 @@ <h3>Static methods</h3>
11411148
</details>
11421149
</dd>
11431150
</dl>
1144-
<h3>Instance variables</h3>
1145-
<dl>
1146-
<dt id="raffiot.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : List[+E]</code></dt>
1147-
<dd>
1148-
<div class="desc"><p>The list of errors encountered</p></div>
1149-
</dd>
1150-
<dt id="raffiot.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : List[<a title="raffiot.utils.TracedException" href="utils.html#raffiot.utils.TracedException">TracedException</a>]</code></dt>
1151-
<dd>
1152-
<div class="desc"><p>The list exceptions encountered</p></div>
1153-
</dd>
1154-
</dl>
11551151
</dd>
11561152
<dt id="raffiot.Ok"><code class="flex name class">
11571153
<span>class <span class="ident">Ok</span></span>
@@ -3174,7 +3170,7 @@ <h3>Methods</h3>
31743170
<pre><code class="python">@final
31753171
@dataclass
31763172
class TracedException:
3177-
__slots__ = [&#34;exception&#34;, &#34;stack_trace&#34;]
3173+
__slots__ = (&#34;exception&#34;, &#34;stack_trace&#34;)
31783174

31793175
exception: Exception
31803176
&#34;&#34;&#34;

docs/api/untyped/index.html

+14-18
Original file line numberDiff line numberDiff line change
@@ -983,20 +983,18 @@ <h3>Methods</h3>
983983
Exception for pattern matching errors (used internally, should NEVER happen).
984984
&#34;&#34;&#34;
985985

986-
__slots__ = &#34;message&#34;
987-
988986
message: None</code></pre>
989987
</details>
990988
<h3>Ancestors</h3>
991989
<ul class="hlist">
992990
<li>builtins.Exception</li>
993991
<li>builtins.BaseException</li>
994992
</ul>
995-
<h3>Instance variables</h3>
993+
<h3>Class variables</h3>
996994
<dl>
997995
<dt id="raffiot.untyped.MatchError.message"><code class="name">var <span class="ident">message</span> : NoneType</code></dt>
998996
<dd>
999-
<div class="desc"><p>Return an attribute of instance, which is of type owner.</p></div>
997+
<div class="desc"></div>
1000998
</dd>
1001999
</dl>
10021000
</dd>
@@ -1016,8 +1014,6 @@ <h3>Instance variables</h3>
10161014
Represents
10171015
&#34;&#34;&#34;
10181016

1019-
__slots__ = &#34;exceptions&#34;, &#34;errors&#34;
1020-
10211017
exceptions: None
10221018
&#34;&#34;&#34;
10231019
The list exceptions encountered
@@ -1071,6 +1067,17 @@ <h3>Ancestors</h3>
10711067
<li>builtins.Exception</li>
10721068
<li>builtins.BaseException</li>
10731069
</ul>
1070+
<h3>Class variables</h3>
1071+
<dl>
1072+
<dt id="raffiot.untyped.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : NoneType</code></dt>
1073+
<dd>
1074+
<div class="desc"><p>The list of errors encountered</p></div>
1075+
</dd>
1076+
<dt id="raffiot.untyped.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : NoneType</code></dt>
1077+
<dd>
1078+
<div class="desc"><p>The list exceptions encountered</p></div>
1079+
</dd>
1080+
</dl>
10741081
<h3>Static methods</h3>
10751082
<dl>
10761083
<dt id="raffiot.untyped.MultipleExceptions.merge"><code class="name flex">
@@ -1119,17 +1126,6 @@ <h3>Static methods</h3>
11191126
</details>
11201127
</dd>
11211128
</dl>
1122-
<h3>Instance variables</h3>
1123-
<dl>
1124-
<dt id="raffiot.untyped.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : NoneType</code></dt>
1125-
<dd>
1126-
<div class="desc"><p>The list of errors encountered</p></div>
1127-
</dd>
1128-
<dt id="raffiot.untyped.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : NoneType</code></dt>
1129-
<dd>
1130-
<div class="desc"><p>The list exceptions encountered</p></div>
1131-
</dd>
1132-
</dl>
11331129
</dd>
11341130
<dt id="raffiot.untyped.Ok"><code class="flex name class">
11351131
<span>class <span class="ident">Ok</span></span>
@@ -3026,7 +3022,7 @@ <h3>Methods</h3>
30263022
</summary>
30273023
<pre><code class="python">@dataclass
30283024
class TracedException:
3029-
__slots__ = [&#34;exception&#34;, &#34;stack_trace&#34;]
3025+
__slots__ = (&#34;exception&#34;, &#34;stack_trace&#34;)
30303026

30313027
exception: None
30323028
&#34;&#34;&#34;

docs/api/untyped/utils.html

+15-35
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h1 class="title">Module <code>raffiot.untyped.utils</code></h1>
4646

4747
@dataclass
4848
class TracedException:
49-
__slots__ = [&#34;exception&#34;, &#34;stack_trace&#34;]
49+
__slots__ = (&#34;exception&#34;, &#34;stack_trace&#34;)
5050

5151
exception: None
5252
&#34;&#34;&#34;
@@ -103,8 +103,6 @@ <h1 class="title">Module <code>raffiot.untyped.utils</code></h1>
103103
Exception for pattern matching errors (used internally, should NEVER happen).
104104
&#34;&#34;&#34;
105105

106-
__slots__ = &#34;message&#34;
107-
108106
message: None
109107

110108

@@ -114,8 +112,6 @@ <h1 class="title">Module <code>raffiot.untyped.utils</code></h1>
114112
Represents
115113
&#34;&#34;&#34;
116114

117-
__slots__ = &#34;exceptions&#34;, &#34;errors&#34;
118-
119115
exceptions: None
120116
&#34;&#34;&#34;
121117
The list exceptions encountered
@@ -171,8 +167,6 @@ <h1 class="title">Module <code>raffiot.untyped.utils</code></h1>
171167
Errors from the business domain
172168
&#34;&#34;&#34;
173169

174-
__slots__ = &#34;error&#34;
175-
176170
errors: None
177171

178172

@@ -279,8 +273,6 @@ <h3>Class variables</h3>
279273
Errors from the business domain
280274
&#34;&#34;&#34;
281275

282-
__slots__ = &#34;error&#34;
283-
284276
errors: None</code></pre>
285277
</details>
286278
<h3>Ancestors</h3>
@@ -295,13 +287,6 @@ <h3>Class variables</h3>
295287
<div class="desc"></div>
296288
</dd>
297289
</dl>
298-
<h3>Instance variables</h3>
299-
<dl>
300-
<dt id="raffiot.untyped.utils.DomainErrors.error"><code class="name">var <span class="ident">error</span></code></dt>
301-
<dd>
302-
<div class="desc"><p>Return an attribute of instance, which is of type owner.</p></div>
303-
</dd>
304-
</dl>
305290
</dd>
306291
<dt id="raffiot.untyped.utils.MatchError"><code class="flex name class">
307292
<span>class <span class="ident">MatchError</span></span>
@@ -319,20 +304,18 @@ <h3>Instance variables</h3>
319304
Exception for pattern matching errors (used internally, should NEVER happen).
320305
&#34;&#34;&#34;
321306

322-
__slots__ = &#34;message&#34;
323-
324307
message: None</code></pre>
325308
</details>
326309
<h3>Ancestors</h3>
327310
<ul class="hlist">
328311
<li>builtins.Exception</li>
329312
<li>builtins.BaseException</li>
330313
</ul>
331-
<h3>Instance variables</h3>
314+
<h3>Class variables</h3>
332315
<dl>
333316
<dt id="raffiot.untyped.utils.MatchError.message"><code class="name">var <span class="ident">message</span> : NoneType</code></dt>
334317
<dd>
335-
<div class="desc"><p>Return an attribute of instance, which is of type owner.</p></div>
318+
<div class="desc"></div>
336319
</dd>
337320
</dl>
338321
</dd>
@@ -352,8 +335,6 @@ <h3>Instance variables</h3>
352335
Represents
353336
&#34;&#34;&#34;
354337

355-
__slots__ = &#34;exceptions&#34;, &#34;errors&#34;
356-
357338
exceptions: None
358339
&#34;&#34;&#34;
359340
The list exceptions encountered
@@ -407,6 +388,17 @@ <h3>Ancestors</h3>
407388
<li>builtins.Exception</li>
408389
<li>builtins.BaseException</li>
409390
</ul>
391+
<h3>Class variables</h3>
392+
<dl>
393+
<dt id="raffiot.untyped.utils.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : NoneType</code></dt>
394+
<dd>
395+
<div class="desc"><p>The list of errors encountered</p></div>
396+
</dd>
397+
<dt id="raffiot.untyped.utils.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : NoneType</code></dt>
398+
<dd>
399+
<div class="desc"><p>The list exceptions encountered</p></div>
400+
</dd>
401+
</dl>
410402
<h3>Static methods</h3>
411403
<dl>
412404
<dt id="raffiot.untyped.utils.MultipleExceptions.merge"><code class="name flex">
@@ -455,17 +447,6 @@ <h3>Static methods</h3>
455447
</details>
456448
</dd>
457449
</dl>
458-
<h3>Instance variables</h3>
459-
<dl>
460-
<dt id="raffiot.untyped.utils.MultipleExceptions.errors"><code class="name">var <span class="ident">errors</span> : NoneType</code></dt>
461-
<dd>
462-
<div class="desc"><p>The list of errors encountered</p></div>
463-
</dd>
464-
<dt id="raffiot.untyped.utils.MultipleExceptions.exceptions"><code class="name">var <span class="ident">exceptions</span> : NoneType</code></dt>
465-
<dd>
466-
<div class="desc"><p>The list exceptions encountered</p></div>
467-
</dd>
468-
</dl>
469450
</dd>
470451
<dt id="raffiot.untyped.utils.TracedException"><code class="flex name class">
471452
<span>class <span class="ident">TracedException</span></span>
@@ -479,7 +460,7 @@ <h3>Instance variables</h3>
479460
</summary>
480461
<pre><code class="python">@dataclass
481462
class TracedException:
482-
__slots__ = [&#34;exception&#34;, &#34;stack_trace&#34;]
463+
__slots__ = (&#34;exception&#34;, &#34;stack_trace&#34;)
483464

484465
exception: None
485466
&#34;&#34;&#34;
@@ -656,7 +637,6 @@ <h4><code><a title="raffiot.untyped.utils.ComputationStatus" href="#raffiot.unty
656637
<li>
657638
<h4><code><a title="raffiot.untyped.utils.DomainErrors" href="#raffiot.untyped.utils.DomainErrors">DomainErrors</a></code></h4>
658639
<ul class="">
659-
<li><code><a title="raffiot.untyped.utils.DomainErrors.error" href="#raffiot.untyped.utils.DomainErrors.error">error</a></code></li>
660640
<li><code><a title="raffiot.untyped.utils.DomainErrors.errors" href="#raffiot.untyped.utils.DomainErrors.errors">errors</a></code></li>
661641
</ul>
662642
</li>

0 commit comments

Comments
 (0)