Skip to content

Commit c6477d7

Browse files
author
Meghan Jones
committed
Update function name
1 parent c2a2979 commit c6477d7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

pygmt/helpers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from pygmt.helpers.decorators import (
55
deprecate_parameter,
66
fmt_docstring,
7+
insert_alias,
78
kwargs_to_strings,
8-
tab_complete_alias,
99
use_alias,
1010
)
1111
from pygmt.helpers.tempfile import GMTTempFile, tempfile_from_geojson, unique_name

pygmt/helpers/decorators.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,9 @@ def new_module(*args, **kwargs):
328328
return alias_decorator
329329

330330

331-
def tab_complete_alias(module_func):
331+
def insert_alias(module_func):
332332
"""
333-
Decorator injecting aliases into the signature of a method.
333+
Decorator insertings aliases into the signature of a method.
334334
"""
335335

336336
# Get current signature and parameters

pygmt/src/blockm.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
data_kind,
1111
dummy_context,
1212
fmt_docstring,
13+
insert_alias,
1314
kwargs_to_strings,
14-
tab_complete_alias,
1515
use_alias,
1616
)
1717

@@ -72,7 +72,7 @@ def _blockm(block_method, table, outfile, **kwargs):
7272

7373

7474
@fmt_docstring
75-
@tab_complete_alias
75+
@insert_alias
7676
@use_alias(
7777
I="spacing",
7878
R="region",
@@ -134,7 +134,7 @@ def blockmean(table, outfile=None, **kwargs):
134134

135135

136136
@fmt_docstring
137-
@tab_complete_alias
137+
@insert_alias
138138
@use_alias(
139139
I="spacing",
140140
R="region",

0 commit comments

Comments
 (0)