Skip to content

Commit 619b18d

Browse files
fpozzobontimvink
authored andcommitted
list backward compatible
1 parent b582ea1 commit 619b18d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/mkdocs_git_authors_plugin/git/commit.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import re
2-
from typing import Any, Union
2+
from typing import Any, Union, List
33

44
from mkdocs_git_authors_plugin import util
55
from mkdocs_git_authors_plugin.git.repo import AbstractRepoObject, Repo
@@ -24,7 +24,7 @@ def __init__(
2424
author_time: str,
2525
author_tz: str,
2626
summary: str,
27-
co_authors: list[Any],
27+
co_authors: List[Any],
2828
):
2929
"""Initialize a commit from its SHA.
3030

src/mkdocs_git_authors_plugin/git/repo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import re
22
from pathlib import Path
3-
from typing import Any, Union
3+
from typing import Any, Union, List
44

55
from mkdocs_git_authors_plugin.git.command import GitCommand
66

@@ -52,7 +52,7 @@ def author(self, name, email: str):
5252
self._authors[email] = Author(self, name, email)
5353
return self._authors[email]
5454

55-
def get_authors(self) -> list:
55+
def get_authors(self) -> List[Any]:
5656
"""
5757
Sorted list of authors in the repository.
5858
@@ -120,7 +120,7 @@ def get_commit(self, sha: str, **kwargs) -> Union[Any, None]:
120120
self._commits[sha] = Commit(self, sha, **kwargs)
121121
return self._commits.get(sha)
122122

123-
def _get_co_authors(self, sha, author_email) -> list[Any]:
123+
def _get_co_authors(self, sha, author_email) -> List[Any]:
124124
"""
125125
Execute git log and parse the results.
126126

0 commit comments

Comments
 (0)