Skip to content

Commit 3c63ecc

Browse files
Meghan Jonesweiji14
andauthored
Apply suggestions from code review
Co-authored-by: Wei Ji <23487320+weiji14@users.noreply.github.com>
1 parent 6ed7e93 commit 3c63ecc

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pygmt/helpers/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from pygmt.helpers.decorators import (
55
deprecate_parameter,
66
fmt_docstring,
7-
insert_alias,
87
kwargs_to_strings,
98
use_alias,
109
)

pygmt/helpers/decorators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ def fmt_docstring(module_func):
323323
return module_func
324324

325325

326-
def insert_alias(module_func, default_value=None):
326+
def _insert_alias(module_func, default_value=None):
327327
"""
328-
Decorator insertings aliases into the signature of a method.
328+
Function to insert PyGMT long aliases into the signature of a method.
329329
"""
330330

331331
# Get current signature and parameters
@@ -408,7 +408,7 @@ def new_module(*args, **kwargs):
408408

409409
new_module.aliases = aliases
410410

411-
new_module = insert_alias(new_module)
411+
new_module = _insert_alias(new_module)
412412

413413
return new_module
414414

0 commit comments

Comments
 (0)