Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adb2a65 commit 1123d70Copy full SHA for 1123d70
1 file changed
lib/matplotlib/_api/deprecation.py
@@ -42,11 +42,7 @@ def _generate_deprecation_warning(
42
raise ValueError(
43
"A pending deprecation cannot have a scheduled removal")
44
else:
45
- if removal:
46
- removal = "in {}".format(removal)
47
- else:
48
- removal = {"2.2": "in 3.1", "3.0": "in 3.2", "3.1": "in 3.3"}.get(
49
- since, "two minor releases later")
+ removal = f"in {removal}" if removal else "two minor releases later"
50
if not message:
51
message = (
52
"\nThe %(name)s %(obj_type)s"
0 commit comments