Skip to content

Commit

Permalink
Fix B034 (use keyword arguments for calls to re.split())
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Aug 13, 2023
1 parent 60f37b8 commit 6cd8723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/domains/rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class ReSTDirectiveOption(ReSTMarkup):

def handle_signature(self, sig: str, signode: desc_signature) -> str:
try:
name, argument = re.split(r'\s*:\s+', sig.strip(), 1)
name, argument = re.split(r'\s*:\s+', sig.strip(), maxsplit=1)
except ValueError:
name, argument = sig, None

Expand Down

0 comments on commit 6cd8723

Please sign in to comment.