Skip to content

Commit

Permalink
move dtype_is_complex to _netCDF4
Browse files Browse the repository at this point in the history
  • Loading branch information
headtr1ck committed Jun 21, 2024
1 parent 89584e7 commit b1b9ecb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/stubtest-allowlist
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions src/netCDF4/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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): ...
Expand Down
5 changes: 4 additions & 1 deletion src/netCDF4/_netCDF4.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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__
)
)


def dtype_is_complex(dtype: str) -> bool: ...

0 comments on commit b1b9ecb

Please sign in to comment.