Skip to content

Commit 651fcf0

Browse files
authored
Merge pull request #1954 from EliahKagan/py313-doc
Upgrade sphinx to ~7.1.2
2 parents 900fc33 + 16fc99f commit 651fcf0

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

doc/requirements.txt

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
sphinx == 4.3.2
1+
sphinx >= 7.1.2, < 7.2 ; python_version >= "3.8"
2+
sphinx == 4.3.2 ; python_version < "3.8"
3+
sphinxcontrib-applehelp >= 1.0.2, <= 1.0.4 ; python_version < "3.8"
4+
sphinxcontrib-devhelp == 1.0.2 ; python_version < "3.8"
5+
sphinxcontrib-htmlhelp >= 2.0.0, <= 2.0.1 ; python_version < "3.8"
6+
sphinxcontrib-qthelp == 1.0.3 ; python_version < "3.8"
7+
sphinxcontrib-serializinghtml == 1.1.5 ; python_version < "3.8"
28
sphinx_rtd_theme
3-
sphinxcontrib-applehelp >= 1.0.2, <= 1.0.4
4-
sphinxcontrib-devhelp == 1.0.2
5-
sphinxcontrib-htmlhelp >= 2.0.0, <= 2.0.1
6-
sphinxcontrib-qthelp == 1.0.3
7-
sphinxcontrib-serializinghtml == 1.1.5
89
sphinx-autodoc-typehints

git/index/base.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
from git.objects import Blob, Commit, Object, Submodule, Tree
2929
from git.objects.util import Serializable
3030
from git.util import (
31+
Actor,
3132
LazyMixin,
3233
LockedFD,
3334
join_path_native,
@@ -76,7 +77,6 @@
7677

7778
from git.refs.reference import Reference
7879
from git.repo import Repo
79-
from git.util import Actor
8080

8181

8282
Treeish = Union[Tree, Commit, str, bytes]
@@ -1117,8 +1117,8 @@ def commit(
11171117
message: str,
11181118
parent_commits: Union[List[Commit], None] = None,
11191119
head: bool = True,
1120-
author: Union[None, "Actor"] = None,
1121-
committer: Union[None, "Actor"] = None,
1120+
author: Union[None, Actor] = None,
1121+
committer: Union[None, Actor] = None,
11221122
author_date: Union[datetime.datetime, str, None] = None,
11231123
commit_date: Union[datetime.datetime, str, None] = None,
11241124
skip_hooks: bool = False,

git/objects/tag.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import sys
1515

1616
from git.compat import defenc
17-
from git.util import hex_to_bin
17+
from git.util import Actor, hex_to_bin
1818

1919
from . import base
2020
from .util import get_object_type_by_name, parse_actor_and_date
@@ -30,7 +30,6 @@
3030

3131
if TYPE_CHECKING:
3232
from git.repo import Repo
33-
from git.util import Actor
3433

3534
from .blob import Blob
3635
from .commit import Commit
@@ -64,7 +63,7 @@ def __init__(
6463
binsha: bytes,
6564
object: Union[None, base.Object] = None,
6665
tag: Union[None, str] = None,
67-
tagger: Union[None, "Actor"] = None,
66+
tagger: Union[None, Actor] = None,
6867
tagged_date: Union[int, None] = None,
6968
tagger_tz_offset: Union[int, None] = None,
7069
message: Union[str, None] = None,

0 commit comments

Comments
 (0)