Skip to content

Commit 571d0dd

Browse files
committed
Improve comments
1 parent c1fdfa5 commit 571d0dd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

pygmt/alias.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,12 @@ def __init__(self, **kwargs):
250250

251251
# Storing option-value as a keyword dictionary.
252252
self.kwdict = {}
253-
# Loop over the alias dictionary.
254-
# The value of each key is an Alias object or a sequence of Alias objects.
255-
# If it is a single Alias object, we will use its _value property.
256-
# If it is a sequence of Alias objects, we will concatenate their _value
257-
# properties into a single string.
258253

254+
# The value of each key in aliasdict is an Alias object or a sequence of Alias
255+
# objects. If it is a single Alias object, we will use its _value property. If
256+
# it is a sequence of Alias objects, we will concatenate their _value properties
257+
# into a single string.
258+
#
259259
# Note that alias._value is converted by the _to_string method and can only be
260260
# None, string or sequence of strings.
261261
# - None means the parameter is not specified.
@@ -268,7 +268,6 @@ def __init__(self, **kwargs):
268268
self.kwdict[option] = "".join(values)
269269
elif aliases._value is not None: # A single Alias object and not None.
270270
self.kwdict[option] = aliases._value
271-
# Now, the dictionary value should be a string or a sequence of strings.
272271

273272
def update(self, kwargs: Mapping[str, Any]):
274273
"""

0 commit comments

Comments
 (0)