Skip to content

Commit

Permalink
Update function name
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed May 21, 2021
1 parent c2a2979 commit c6477d7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pygmt/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from pygmt.helpers.decorators import (
deprecate_parameter,
fmt_docstring,
insert_alias,
kwargs_to_strings,
tab_complete_alias,
use_alias,
)
from pygmt.helpers.tempfile import GMTTempFile, tempfile_from_geojson, unique_name
Expand Down
4 changes: 2 additions & 2 deletions pygmt/helpers/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ def new_module(*args, **kwargs):
return alias_decorator


def tab_complete_alias(module_func):
def insert_alias(module_func):
"""
Decorator injecting aliases into the signature of a method.
Decorator insertings aliases into the signature of a method.
"""

# Get current signature and parameters
Expand Down
6 changes: 3 additions & 3 deletions pygmt/src/blockm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
data_kind,
dummy_context,
fmt_docstring,
insert_alias,
kwargs_to_strings,
tab_complete_alias,
use_alias,
)

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


@fmt_docstring
@tab_complete_alias
@insert_alias
@use_alias(
I="spacing",
R="region",
Expand Down Expand Up @@ -134,7 +134,7 @@ def blockmean(table, outfile=None, **kwargs):


@fmt_docstring
@tab_complete_alias
@insert_alias
@use_alias(
I="spacing",
R="region",
Expand Down

0 comments on commit c6477d7

Please sign in to comment.