From 2c48699dff1ae61598c28b261f9408a8446ccb80 Mon Sep 17 00:00:00 2001 From: Chris Barnes Date: Mon, 15 Jul 2019 14:40:51 -0400 Subject: [PATCH] fix lint issues --- pyn5/__init__.py | 5 ++++- pyn5/dataset.py | 2 +- pyn5/file_group.py | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pyn5/__init__.py b/pyn5/__init__.py index ac8d0da..2e608c0 100644 --- a/pyn5/__init__.py +++ b/pyn5/__init__.py @@ -39,5 +39,8 @@ "DatasetINT64", "DatasetFLOAT32", "DatasetFLOAT64", - "File" + "File", + "Group", + "Dataset", + "AttributeManager" ] diff --git a/pyn5/dataset.py b/pyn5/dataset.py index 47817f9..2c9cb46 100644 --- a/pyn5/dataset.py +++ b/pyn5/dataset.py @@ -33,7 +33,7 @@ class Dataset(DatasetBase): - def __init__(self, name: str, parent: "Group"): + def __init__(self, name: str, parent: "Group"): # noqa would need circular imports """ :param name: basename of the dataset diff --git a/pyn5/file_group.py b/pyn5/file_group.py index 28ef958..c2e609c 100644 --- a/pyn5/file_group.py +++ b/pyn5/file_group.py @@ -69,7 +69,7 @@ def _create_child_dataset( "Set chunks=True to guess reasonable chunk sizes." ) chunks = shape - elif chunks == True: + elif chunks is True: chunks = guess_chunks(shape, dtype.itemsize) dpath = self._path / name