mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
ruff: Fix UP006 Use list instead of List for type annotation.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
c2214b3904
commit
e08a24e47f
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user