File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class ToxConfig(SphinxDirective):
24
24
option_spec : Final [ClassVar [dict [str , Any ]]] = {
25
25
"keys" : unchanged_required ,
26
26
"version_added" : unchanged ,
27
- "version_changed " : unchanged ,
27
+ "version_deprecated " : unchanged ,
28
28
"default" : unchanged ,
29
29
"constant" : flag ,
30
30
"ref_suffix" : unchanged ,
@@ -71,6 +71,10 @@ def run(self) -> list[Node]:
71
71
line += Text (" 📢 added in " )
72
72
ver = self .options ["version_added" ]
73
73
line += literal (ver , ver )
74
+ if "version_deprecated" in self .options :
75
+ line += Text (" ⚠️ deprecated in " )
76
+ ver = self .options ["version_deprecated" ]
77
+ line += literal (ver , ver )
74
78
75
79
p = container ("" )
76
80
self .state .nested_parse (StringList (string2lines ("\n " .join (f" { i } " for i in self .content ))), 0 , p )
You can’t perform that action at this time.
0 commit comments