Skip to content

Commit 74c4f37

Browse files
committed
add new functions to stub
1 parent d9b9c62 commit 74c4f37

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎Changelog‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version 1.7.2 (tag v1.7.2rel)
1+
version 1.7.2 (not yet released)
22
===============================
33
* add static type hints (PR #1302)
44

‎src/netCDF4/__init__.pyi‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ __all__ = [
1414
'Dataset', 'Variable', 'Dimension', 'Group', 'MFDataset', 'MFTime', 'CompoundType',
1515
'VLType', 'date2num', 'num2date', 'date2index', 'stringtochar', 'chartostring',
1616
'stringtoarr', 'getlibversion', 'EnumType', 'get_chunk_cache', 'set_chunk_cache',
17-
'set_alignment', 'get_alignment'
17+
'set_alignment', 'get_alignment', 'nc_get', 'nc_set',
1818
]
1919
__pdoc__ = {'utils': False}
2020

@@ -87,6 +87,7 @@ __has_blosc_support__: BoolInt
8787
__has_szip_support__: BoolInt
8888
__has_set_alignment__: BoolInt
8989
__has_ncfilter__: BoolInt
90+
__has_nc_rc_set__: BoolInt
9091
is_native_little: bool
9192
is_native_big: bool
9293
default_encoding: Final = 'utf-8'
@@ -624,6 +625,8 @@ def chartostring(
624625
) -> npt.NDArray[np.str_] | npt.NDArray[np.bytes_]: ...
625626

626627
def getlibversion() -> str: ...
628+
def nc_get(key: str) -> str: ...
629+
def nc_set(key: str, val: str): ...
627630

628631
def set_alignment(threshold: int, alignment: int): ...
629632
def get_alignment() -> tuple[int, int]: ...

0 commit comments

Comments
 (0)