Skip to content

Commit 62d54c6

Browse files
committed
fix: docs and tests
1 parent fcf8a11 commit 62d54c6

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

src/compas/datastructures/__init__.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@
2323
Part
2424
2525
26+
Exceptions
27+
==========
28+
29+
.. autosummary::
30+
:toctree: generated/
31+
:nosignatures:
32+
33+
AssemblyError
34+
FeatureError
35+
36+
2637
Functions
2738
=========
2839
@@ -296,7 +307,9 @@
296307

297308
from .assembly import (
298309
Assembly,
299-
Part
310+
Part,
311+
AssemblyError,
312+
FeatureError,
300313
)
301314

302315
if not compas.IPY:
@@ -439,6 +452,8 @@
439452
# Assemblies
440453
'Assembly',
441454
'Part',
455+
'AssemblyError',
456+
'FeatureError',
442457
]
443458

444459
if not compas.IPY:
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
from __future__ import print_function
21
from __future__ import absolute_import
32
from __future__ import division
3+
from __future__ import print_function
44

5-
from .assembly import Assembly # noqa: F401 F403
6-
from .part import Part # noqa: F401 F403
5+
from .exceptions import AssemblyError # noqa: F401
6+
from .exceptions import FeatureError # noqa: F401
7+
from .assembly import Assembly # noqa: F401
8+
from .part import Part # noqa: F401

0 commit comments

Comments
 (0)