Skip to content

Commit 0e19d26

Browse files
fix: fix string formatting in version warning message (#928)
Fixed, variables interpolation in version warning message: https://github.com/Kaggle/kaggle-cli/blob/54dc103e50dc678addd94aee1d68fd54d6a54b9e/src/kaggle/api/kaggle_api_extended.py#L5325-L5327 **Before:** ``` Warning: Looks like you're using an outdated `kaggle`` version (installed: {current_version}), please consider upgrading to the latest version ({latest_version_str}) ``` **After:** ``` Warning: Looks like you're using an outdated `kaggle` version (installed: 1.8.3), please consider upgrading to the latest version (1.8.4) ```
1 parent 54dc103 commit 0e19d26

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/kaggle/api/kaggle_api_extended.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,9 +5322,9 @@ def _check_response_version(self, response: Response):
53225322
latest_version = parse(latest_version_str)
53235323
if latest_version > current_version:
53245324
print(
5325-
f"Warning: Looks like you're using an outdated `kaggle`` "
5326-
"version (installed: {current_version}), please consider "
5327-
"upgrading to the latest version ({latest_version_str})"
5325+
"Warning: Looks like you're using an outdated `kaggle` "
5326+
f"version (installed: {current_version}), please consider "
5327+
f"upgrading to the latest version ({latest_version_str})"
53285328
)
53295329
self.already_printed_version_warning = True
53305330

0 commit comments

Comments
 (0)