diff --git a/CHANGELOG.md b/CHANGELOG.md index bba7ed346980c..487395e5da877 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -158,6 +158,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/). - Deprecated the `TestTubeLogger` ([#9065](https://github.com/PyTorchLightning/pytorch-lightning/pull/9065)) +- Updated deprecation of `argparse_utils.py` from removal in 1.4 to 2.0 ([#9162](https://github.com/PyTorchLightning/pytorch-lightning/pull/9162)) + + + ### Removed - Removed deprecated `metrics` ([#8586](https://github.com/PyTorchLightning/pytorch-lightning/pull/8586/)) diff --git a/pytorch_lightning/utilities/argparse_utils.py b/pytorch_lightning/utilities/argparse_utils.py index e797719eb54a9..e3c2c3c86dd94 100644 --- a/pytorch_lightning/utilities/argparse_utils.py +++ b/pytorch_lightning/utilities/argparse_utils.py @@ -1,6 +1,6 @@ from pytorch_lightning.utilities import rank_zero_deprecation -rank_zero_deprecation("`argparse_utils` package has been renamed to `argparse` since v1.2 and will be removed in v1.4") +rank_zero_deprecation("`argparse_utils` package has been renamed to `argparse` since v1.2 and will be removed in v2.0") # for backward compatibility with old checkpoints (versions < 1.2.0) # that need to be able to unpickle the function from the checkpoint diff --git a/tests/deprecated_api/test_remove_1-4.py b/tests/deprecated_api/test_remove_2-0.py similarity index 89% rename from tests/deprecated_api/test_remove_1-4.py rename to tests/deprecated_api/test_remove_2-0.py index a3a4a0b1b9180..9c372c8f1a9c6 100644 --- a/tests/deprecated_api/test_remove_1-4.py +++ b/tests/deprecated_api/test_remove_2-0.py @@ -18,7 +18,7 @@ from tests.deprecated_api import _soft_unimport_module -def test_v1_4_0_deprecated_imports(): +def test_v2_0_0_deprecated_imports(): _soft_unimport_module("pytorch_lightning.utilities.argparse_utils") - with pytest.deprecated_call(match="will be removed in v1.4"): + with pytest.deprecated_call(match="will be removed in v2.0"): from pytorch_lightning.utilities.argparse_utils import _gpus_arg_default # noqa: F401