Skip to content

Commit 111738c

Browse files
seismanweiji14
andauthored
Change 'dtype' to 'type' for pyarrow types
Co-authored-by: Wei Ji <[email protected]>
1 parent 29c5c17 commit 111738c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pygmt/tests/test_clib_to_numpy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ def test_to_numpy_pandas_series_numpy_dtypes_numeric(dtype, expected_dtype):
164164
########################################################################################
165165
# Test the _to_numpy function with PyArrow arrays.
166166
#
167-
# PyArrow provides the following dtypes:
167+
# PyArrow provides the following types:
168168
#
169-
# - Numeric dtypes:
169+
# - Numeric types:
170170
# - int8, int16, int32, int64
171171
# - uint8, uint16, uint32, uint64
172172
# - float16, float32, float64
@@ -197,7 +197,7 @@ def test_to_numpy_pandas_series_numpy_dtypes_numeric(dtype, expected_dtype):
197197
)
198198
def test_to_numpy_pyarrow_array_pyarrow_dtypes_numeric(dtype, expected_dtype):
199199
"""
200-
Test the _to_numpy function with PyArrow arrays of PyArrow numeric dtypes.
200+
Test the _to_numpy function with PyArrow arrays of PyArrow numeric types.
201201
"""
202202
data = [1.0, 2.0, 3.0, 4.0, 5.0, 6.0]
203203
if dtype == "float16": # float16 needs special handling
@@ -228,7 +228,7 @@ def test_to_numpy_pyarrow_array_pyarrow_dtypes_numeric(dtype, expected_dtype):
228228
)
229229
def test_to_numpy_pyarrow_array_pyarrow_dtypes_numeric_with_na(dtype, expected_dtype):
230230
"""
231-
Test the _to_numpy function with PyArrow arrays of PyArrow numeric dtypes and NA.
231+
Test the _to_numpy function with PyArrow arrays of PyArrow numeric types and NA.
232232
"""
233233
data = [1.0, 2.0, None, 4.0, 5.0, 6.0]
234234
if dtype == "float16": # float16 needs special handling

0 commit comments

Comments
 (0)