Skip to content

Commit

Permalink
domains.python
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Jul 27, 2023
1 parent 680b850 commit 42e2dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/domains/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def parse(self) -> None:
tokens = self.fetch_type_param_spec()
tp_ann = self._build_identifier(tokens)

if current == [token.OP, '=']:
if self.current and self.current == [token.OP, '=']:
tokens = self.fetch_type_param_spec()
tp_default = self._build_identifier(tokens)

Expand Down

0 comments on commit 42e2dd6

Please sign in to comment.