ruff: Fix UP006 Use list instead of List for type annotation.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-07-11 17:30:17 -07:00
committed by Tim Abbott
parent c2214b3904
commit e08a24e47f
457 changed files with 3588 additions and 3857 deletions

View File

@@ -1,6 +1,6 @@
import os
import re
from typing import List, Match
from typing import Match
from xml.etree.ElementTree import Element
from markdown import Extension, Markdown
@@ -50,7 +50,7 @@ class IncludeBlockProcessor(BlockProcessor):
return "\n".join(lines)
@override
def run(self, parent: Element, blocks: List[str]) -> None:
def run(self, parent: Element, blocks: list[str]) -> None:
self.parser.state.set("include")
self.parser.parseChunk(parent, self.RE.sub(self.expand_include, blocks.pop(0)))
self.parser.state.reset()