h5netcdf 1.3.0__py3-none-any.whl → 1.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of h5netcdf might be problematic. Click here for more details.

h5netcdf/__init__.py CHANGED
@@ -5,6 +5,7 @@ h5netcdf
5
5
  A Python library for the netCDF4 file-format that directly reads and writes
6
6
  HDF5 files via h5py, without using the Unidata netCDF library.
7
7
  """
8
+
8
9
  try:
9
10
  from ._version import version as __version__
10
11
  except Exception:
h5netcdf/_version.py CHANGED
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '1.3.0'
16
- __version_tuple__ = version_tuple = (1, 3, 0)
15
+ __version__ = version = '1.4.1'
16
+ __version_tuple__ = version_tuple = (1, 4, 1)
h5netcdf/attrs.py CHANGED
@@ -76,7 +76,7 @@ class Attributes(MutableMapping):
76
76
 
77
77
  def __setitem__(self, key, value):
78
78
  if key in _HIDDEN_ATTRS:
79
- raise AttributeError("cannot write attribute with reserved name %r" % key)
79
+ raise AttributeError(f"cannot write attribute with reserved name {key!r}")
80
80
  if hasattr(value, "dtype"):
81
81
  dtype = value.dtype
82
82
  else:
@@ -98,4 +98,4 @@ class Attributes(MutableMapping):
98
98
  return len(self._h5attrs) - hidden_count
99
99
 
100
100
  def __repr__(self):
101
- return "\n".join(["%r" % type(self)] + [f"{k}: {v!r}" for k, v in self.items()])
101
+ return "\n".join([f"{type(self)!r}"] + [f"{k}: {v!r}" for k, v in self.items()])