Skip to content

Commit

Permalink
Add types to top-level import to simplify porting from h5py
Browse files Browse the repository at this point in the history
Previously, types like Dataset would have to be imported
through exdir.core.Dataset, which exposes an internal implementation
detail (everything being in exdir.core).

Type-checking by comparing the type to the one imported is common in h5py code,
which means porting also is cumbersome whenever a comparison is performed.
This changes fixes this issues by exposing the types in the root
import.
  • Loading branch information
simetenn authored and dragly committed May 28, 2018
1 parent 3741b06 commit 6687d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exdir/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from . import core
from . import plugin_interface
from . import plugins
from .core import File, validation
from .core import File, validation, Attribute, Dataset, Group, Raw, Object

# TODO remove versioneer
from ._version import get_versions
Expand Down

0 comments on commit 6687d03

Please sign in to comment.