@@ -327,7 +327,7 @@ def get_libgmt_func(
327
327
function .restype = restype
328
328
return function
329
329
330
- def create (self , name : str ):
330
+ def create (self , name : str ) -> None :
331
331
"""
332
332
Create a new GMT C API session.
333
333
@@ -594,7 +594,7 @@ def get_common(self, option: str) -> bool | int | float | np.ndarray:
594
594
case _: # 'status' is the option value (in integer type).
595
595
return status
596
596
597
- def call_module (self , module : str , args : str | list [str ]):
597
+ def call_module (self , module : str , args : str | list [str ]) -> None :
598
598
"""
599
599
Call a GMT module with the given arguments.
600
600
@@ -946,7 +946,9 @@ def _check_dtype_and_dim(self, array: np.ndarray, ndim: int) -> int:
946
946
raise GMTInvalidInput (msg )
947
947
return self [DTYPES [dtype ]]
948
948
949
- def put_vector (self , dataset : ctp .c_void_p , column : int , vector : np .ndarray ):
949
+ def put_vector (
950
+ self , dataset : ctp .c_void_p , column : int , vector : np .ndarray
951
+ ) -> None :
950
952
r"""
951
953
Attach a 1-D numpy array as a column on a GMT dataset.
952
954
@@ -1005,7 +1007,9 @@ def put_vector(self, dataset: ctp.c_void_p, column: int, vector: np.ndarray):
1005
1007
)
1006
1008
raise GMTCLibError (msg )
1007
1009
1008
- def put_strings (self , dataset : ctp .c_void_p , family : str , strings : np .ndarray ):
1010
+ def put_strings (
1011
+ self , dataset : ctp .c_void_p , family : str , strings : np .ndarray
1012
+ ) -> None :
1009
1013
"""
1010
1014
Attach a 1-D numpy array of dtype str as a column on a GMT dataset.
1011
1015
@@ -1059,7 +1063,9 @@ def put_strings(self, dataset: ctp.c_void_p, family: str, strings: np.ndarray):
1059
1063
msg = f"Failed to put strings of type { strings .dtype } into dataset."
1060
1064
raise GMTCLibError (msg )
1061
1065
1062
- def put_matrix (self , dataset : ctp .c_void_p , matrix : np .ndarray , pad : int = 0 ):
1066
+ def put_matrix (
1067
+ self , dataset : ctp .c_void_p , matrix : np .ndarray , pad : int = 0
1068
+ ) -> None :
1063
1069
"""
1064
1070
Attach a 2-D numpy array to a GMT dataset.
1065
1071
@@ -1204,7 +1210,7 @@ def read_data(
1204
1210
raise GMTCLibError (msg )
1205
1211
return ctp .cast (data_ptr , ctp .POINTER (dtype ))
1206
1212
1207
- def write_data (self , family , geometry , mode , wesn , output , data ):
1213
+ def write_data (self , family , geometry , mode , wesn , output , data ) -> None :
1208
1214
"""
1209
1215
Write a GMT data container to a file.
1210
1216
0 commit comments