Skip to content

Commit 026a564

Browse files
[deprecation] Make '_format-option-value' private and update TODOs (#8469)
1 parent b96547b commit 026a564

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pylint/utils/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
HAS_ISORT_5,
1515
IsortDriver,
1616
_check_csv,
17-
_format_option_value,
1817
_splitstrip,
1918
_unquote,
2019
decoding_stream,
@@ -33,7 +32,6 @@
3332
"HAS_ISORT_5",
3433
"IsortDriver",
3534
"_check_csv",
36-
"_format_option_value",
3735
"_splitstrip",
3836
"_unquote",
3937
"decoding_stream",

pylint/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def _comment(string: str) -> str:
258258
def _format_option_value(optdict: OptionDict, value: Any) -> str:
259259
"""Return the user input's value from a 'compiled' value.
260260
261-
TODO: 3.0: Remove deprecated function
261+
TODO: Refactor the code to not use this deprecated function
262262
"""
263263
if optdict.get("type", None) == "py_version":
264264
value = ".".join(str(item) for item in value)

0 commit comments

Comments
 (0)