Fix using mutable object as default arg

This commit is contained in:
Hugo Osvaldo Barrera 2021-05-06 19:28:08 +02:00
parent 75719ecc66
commit abf199f21e

View file

@ -59,7 +59,8 @@ texinfo_documents = [
def github_issue_role(name, rawtext, text, lineno, inliner,
options={}, content=()): # noqa: B006
options=None, content=()):
options = options or {}
try:
issue_num = int(text)
if issue_num <= 0: