Skip to content

Commit

Permalink
remove Optional keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
agoscinski committed Jun 6, 2024
1 parent 07f65e1 commit e42c5d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/aiida/cmdline/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"""

from contextlib import contextmanager
from typing import Optional

from click_spinner import spinner
from packaging.version import Version
Expand Down Expand Up @@ -241,7 +240,7 @@ def do_circus_stuff():
return wrapped(*args, **kwargs)


def deprecated_command(message: str, version: Optional[str] = '3.0.0'):
def deprecated_command(message: str, version: str = '3.0.0'):
"""Function decorator that will mark a click command as deprecated when invoked.
:param message: The message that should be printed with the deprecation warning.
Expand Down

0 comments on commit e42c5d1

Please sign in to comment.