Skip to content

Commit abf199f

Browse files
author
Hugo Osvaldo Barrera
committed
Fix using mutable object as default arg
1 parent 75719ec commit abf199f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@
5959

6060

6161
def github_issue_role(name, rawtext, text, lineno, inliner,
62-
options={}, content=()): # noqa: B006
62+
options=None, content=()):
63+
options = options or {}
6364
try:
6465
issue_num = int(text)
6566
if issue_num <= 0:

0 commit comments

Comments
 (0)