Skip to content

Commit

Permalink
docs: Elaborate on behavior in Section.from_string
Browse files Browse the repository at this point in the history
Only modifies the docstring.
  • Loading branch information
teald committed Dec 18, 2024
1 parent c98840c commit a8453d5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion astrodata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,15 @@ def from_shape(value):

@staticmethod
def from_string(value):
"""Produce a Section object from a string."""
"""Produce a Section object from a string.
Arguments
---------
value: str | None
String from which to create a new Section object. If None, it will
return None.
"""
if value is None:
return None

Expand Down

0 comments on commit a8453d5

Please sign in to comment.