From ed0053024ee33fdd670a1a62ddc18d029e864476 Mon Sep 17 00:00:00 2001 From: Erik Bernhardsson Date: Tue, 30 Apr 2024 22:24:04 -0400 Subject: [PATCH] Push it off to May 1 --- modal/app.py | 2 +- modal/cli/import_refs.py | 2 +- modal/runner.py | 4 ++-- modal/serving.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modal/app.py b/modal/app.py index 932d97f8d..e7e6888cd 100644 --- a/modal/app.py +++ b/modal/app.py @@ -534,7 +534,7 @@ def function( if interactive: deprecation_error( - (2024, 2, 29), "interactive=True has been deprecated. Set MODAL_INTERACTIVE_FUNCTIONS=1 instead." + (2024, 5, 1), "interactive=True has been deprecated. Set MODAL_INTERACTIVE_FUNCTIONS=1 instead." ) if image is None: diff --git a/modal/cli/import_refs.py b/modal/cli/import_refs.py index 88cb87a3d..066d631e7 100644 --- a/modal/cli/import_refs.py +++ b/modal/cli/import_refs.py @@ -122,7 +122,7 @@ def get_by_object_path_try_possible_app_names(obj: Any, obj_path: Optional[str]) return stub elif isinstance(stub, App): deprecation_warning( - (2024, 4, 29), + (2024, 5, 1), "The symbol `app` is not present but `stub` is. This will not work in future" " Modal versions. Suggestion: change the name of `stub` to `app`.", pending=True diff --git a/modal/runner.py b/modal/runner.py index bfbe8f3e8..912fc83ea 100644 --- a/modal/runner.py +++ b/modal/runner.py @@ -516,12 +516,12 @@ async def _interactive_shell(_app: _App, cmd: List[str], environment_name: str = def _run_stub(*args, **kwargs): - deprecation_warning((2024, 4, 29), "`run_stub` is deprecated. Please use `run_app` instead.", pending=True) + deprecation_warning((2024, 5, 1), "`run_stub` is deprecated. Please use `run_app` instead.", pending=True) return _run_app(*args, **kwargs) def _deploy_stub(*args, **kwargs): - deprecation_warning((2024, 4, 29), "`deploy_stub` is deprecated. Please use `deploy_app` instead.", pending=True) + deprecation_warning((2024, 5, 1), "`deploy_stub` is deprecated. Please use `deploy_app` instead.", pending=True) return _deploy_app(*args, **kwargs) diff --git a/modal/serving.py b/modal/serving.py index 150963f91..d38783735 100644 --- a/modal/serving.py +++ b/modal/serving.py @@ -129,7 +129,7 @@ async def _serve_app( def _serve_stub(*args, **kwargs): - deprecation_warning((2024, 4, 29), "`serve_stub` is deprecated. Please use `serve_app` instead.", pending=True) + deprecation_warning((2024, 5, 1), "`serve_stub` is deprecated. Please use `serve_app` instead.", pending=True) return _run_app(*args, **kwargs)