Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Turner <[email protected]>
  • Loading branch information
pradyunsg and AA-Turner authored May 6, 2024
1 parent a8a4bfb commit 76b1aa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ class PEPBanner(rst.Directive):
css_classes = []

def run(self) -> list[nodes.admonition]:
if 'related' in self.options:
if link_content := self.options.get('related', ''):

Check warning on line 30 in pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py

View check run for this annotation

Codecov / codecov/patch

pep_sphinx_extensions/pep_processor/parsing/pep_banner_directive.py#L30

Added line #L30 was not covered by tests
pre_text = self.admonition_pre_template.format(
link_content=self.options['related'])
link_content=link_content)
else:
pre_text = self.admonition_pre_text

Expand Down

0 comments on commit 76b1aa3

Please sign in to comment.