use typing List type (not list)
This commit is contained in:
@@ -24,7 +24,7 @@ from typing import TYPE_CHECKING
|
||||
from typing import Generic, TypeVar, cast
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Optional, ClassVar, Type, Dict
|
||||
from typing import Optional, ClassVar, Type, Dict, List
|
||||
|
||||
T_ChangelogFormater = TypeVar("T_ChangelogFormater", bound="ChangelogFormater")
|
||||
|
||||
@@ -119,11 +119,11 @@ class ChangelogFormater(ABC):
|
||||
title: ClassVar[Optional[str]] = None
|
||||
keywords: ClassVar[Optional[list[str]]] = None
|
||||
priority: ClassVar[int] = 0
|
||||
_lines: list[None | str] = []
|
||||
_lines: List[None | str] = []
|
||||
|
||||
def __init__(self) -> None:
|
||||
"""ChangelogFormater class constructor"""
|
||||
self._lines: list[None | str] = []
|
||||
self._lines: List[None | str] = []
|
||||
|
||||
def Clear(self) -> None:
|
||||
"""Clear the formater content"""
|
||||
@@ -450,7 +450,7 @@ class ChangelogFormater_revert(ChangelogFormater):
|
||||
|
||||
prefix: ClassVar[Optional[str]] = "revert"
|
||||
title: ClassVar[Optional[str]] = "Reverts :back: :"
|
||||
keywords: ClassVar[Optional[list[str]]] = ["revert", "fallback"]
|
||||
keywords: ClassVar[Optional[List[str]]] = ["revert", "fallback"]
|
||||
priority: ClassVar[int] = 0
|
||||
|
||||
def RenderLines(self) -> str:
|
||||
@@ -470,5 +470,5 @@ class ChangelogFormater_others(ChangelogFormater):
|
||||
|
||||
prefix: ClassVar[Optional[str]] = "other"
|
||||
title: ClassVar[Optional[str]] = "Others :question: :"
|
||||
keywords: ClassVar[Optional[list[str]]] = [""]
|
||||
keywords: ClassVar[Optional[List[str]]] = [""]
|
||||
priority: ClassVar[int] = -20
|
||||
|
||||
Reference in New Issue
Block a user