Skip to content

Commit

Permalink
fix decorator deprecation (#167)
Browse files Browse the repository at this point in the history
Co-authored-by: AlexKurek <[email protected]>
  • Loading branch information
zacharyburnett and AlexKurek authored Jul 12, 2024
1 parent 01f1956 commit d65419b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/stpipe/cli/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ class Command(abc.ABC):
be added to the _COMMAND_CLASSES list in core.py.
"""

@abc.abstractclassmethod
@classmethod
@abc.abstractmethod
def get_name(cls):
"""
Get this command's name (the first argument to stpipe).
Expand All @@ -17,7 +18,8 @@ def get_name(cls):
str
"""

@abc.abstractclassmethod
@classmethod
@abc.abstractmethod
def add_subparser(cls, subparsers):
"""
Add this command's parser to the stpipe subparsers.
Expand All @@ -27,7 +29,8 @@ def add_subparser(cls, subparsers):
subparsers : argparse._SubParsersAction
"""

@abc.abstractclassmethod
@classmethod
@abc.abstractmethod
def run(cls, args):
"""
Run the command with the specified arguments.
Expand Down

0 comments on commit d65419b

Please sign in to comment.