Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit b3c521e

Browse files
committed
fixed version problem
1 parent d2ca955 commit b3c521e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

paperspace/cli/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def callback_fun(ctx, param, value):
5353
return callback_fun
5454

5555

56-
def deprecated(f, version="1.0.0"):
56+
def deprecated(version="1.0.0"):
5757
deprecated_invoke_notice = """DeprecatedWarning: \nWARNING: This command will not be included in version %s .
5858
For more information, please see:
5959
@@ -64,7 +64,7 @@ def new_invoke(self, ctx):
6464
click.echo(click.style(deprecated_invoke_notice, fg='red'), err=True)
6565
super(type(self), self).invoke(ctx)
6666

67-
def decorator():
67+
def decorator(f):
6868
f.invoke = functools.partial(new_invoke, f)
6969

70-
return decorator()
70+
return decorator

paperspace/cli/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from paperspace.constants import RunMode
1010

1111

12-
@deprecated
12+
@deprecated(version="0.6.0")
1313
@cli.command("run", help="Run script or command on remote cluster")
1414
@click.option("-c", "--python-command", "mode", flag_value=RunMode.RUN_MODE_PYTHON_COMMAND)
1515
@click.option("-m", "--module", "mode", flag_value=RunMode.RUN_MODE_PYTHON_MODULE)

0 commit comments

Comments
 (0)