Skip to content

Commit 40b122e

Browse files
authored
#180 Merge pull request from astropenguin/astropenguin/issue179
Fix importing at the package root
2 parents 1f9816f + 190463d commit 40b122e

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

xarray_dataclasses/__init__.py

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
1-
# type: ignore
1+
__all__ = [
2+
"AsDataArray",
3+
"AsDataset",
4+
"DataModel",
5+
"DataOptions",
6+
"Attr",
7+
"Coord",
8+
"Coordof",
9+
"Data",
10+
"Dataof",
11+
"Name",
12+
"asdataarray",
13+
"asdataset",
14+
"dataarray",
15+
"dataset",
16+
"datamodel",
17+
"dataoptions",
18+
"typing",
19+
]
220
__version__ = "1.3.1"
321

422

523
# submodules
24+
from . import dataarray
25+
from . import dataset
26+
from . import datamodel
27+
from . import dataoptions
28+
from . import typing
629
from .dataarray import *
730
from .dataset import *
831
from .datamodel import *
932
from .dataoptions import *
1033
from .typing import *
11-
12-
13-
# for Sphinx docs
14-
__all__ = dir()

0 commit comments

Comments
 (0)