mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
nixos-render-docs: De-lint using ruff --fix
This automated de-linting has applied a few different refactors: - Remove unused imports and variables - Change f-strings with no variables to regular strings - Remove trailing semicolon
This commit is contained in:
parent
7403dd3fe2
commit
7b396875bb
13 changed files with 18 additions and 28 deletions
|
@ -211,7 +211,7 @@ class HTMLRenderer(Renderer):
|
|||
self._ordered_list_nesting += 1
|
||||
return f'<div class="orderedlist"><ol class="orderedlist {extra}" {start} type="{style}">'
|
||||
def ordered_list_close(self, token: Token, tokens: Sequence[Token], i: int) -> str:
|
||||
self._ordered_list_nesting -= 1;
|
||||
self._ordered_list_nesting -= 1
|
||||
return "</ol></div>"
|
||||
def example_open(self, token: Token, tokens: Sequence[Token], i: int) -> str:
|
||||
if id := cast(str, token.attrs.get('id', '')):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue