diff --git a/.github/stubtest-allowlist b/.github/stubtest-allowlist index dc353cdc2..f53449917 100644 --- a/.github/stubtest-allowlist +++ b/.github/stubtest-allowlist @@ -23,5 +23,4 @@ netCDF4._netCDF4.Variable.auto_complex netCDF4._netCDF4.__reduce_cython__ netCDF4._netCDF4.__setstate_cython__ netCDF4._netCDF4.__test__ -netCDF4._netCDF4.dtype_is_complex netCDF4.utils.bytes \ No newline at end of file diff --git a/src/netCDF4/__init__.pyi b/src/netCDF4/__init__.pyi index 61eef8a20..da958e61a 100644 --- a/src/netCDF4/__init__.pyi +++ b/src/netCDF4/__init__.pyi @@ -529,8 +529,6 @@ def stringtoarr(string, NUMCHARS: int, dtype: Literal['S', 'U'] = 'S') -> np.nda def stringtochar(a, encoding: str | bytes | None = 'utf-8') -> np.ndarray: ... def chartostring(b, encoding: str | bytes | None = 'utf-8') -> np.ndarray: ... -def dtype_is_complex(dtype: str) -> bool: ... - def getlibversion() -> str: ... def set_alignment(threshold: int, alignment: int): ... diff --git a/src/netCDF4/_netCDF4.pyi b/src/netCDF4/_netCDF4.pyi index cfec62156..536d4f63b 100644 --- a/src/netCDF4/_netCDF4.pyi +++ b/src/netCDF4/_netCDF4.pyi @@ -13,4 +13,7 @@ from . import ( __has_quantization_support__, __has_zstandard_support__, __has_bzip2_support__, __has_blosc_support__, __has_szip_support__, __has_set_alignment__, __has_ncfilter__ -) \ No newline at end of file +) + + +def dtype_is_complex(dtype: str) -> bool: ...