Skip to content

Commit c35ab1d

Browse files
committed
upgrade sphinx for 3.10 compat
1 parent 2f42966 commit c35ab1d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

doc/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx==4.1.1
1+
sphinx==4.1.2
22
sphinx_rtd_theme
33
sphinx-autodoc-typehints

git/objects/util.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
66
"""Module for general utility functions"""
77

8-
from abc import abstractmethod
8+
from abc import ABC, abstractmethod
99
import warnings
1010
from git.util import (
1111
IterableList,
@@ -22,10 +22,10 @@
2222
from datetime import datetime, timedelta, tzinfo
2323

2424
# typing ------------------------------------------------------------
25-
from typing import (Any, Callable, Deque, Iterator, Generic, NamedTuple, overload, Sequence,
25+
from typing import (Any, Callable, Deque, Iterator, Generic, NamedTuple, overload, Sequence, # NOQA: F401
2626
TYPE_CHECKING, Tuple, Type, TypeVar, Union, cast)
2727

28-
from git.types import Has_id_attribute, Literal, _T
28+
from git.types import Has_id_attribute, Literal, _T # NOQA: F401
2929

3030
if TYPE_CHECKING:
3131
from io import BytesIO, StringIO
@@ -37,7 +37,8 @@
3737
from .submodule.base import Submodule
3838
from git.types import Protocol, runtime_checkable
3939
else:
40-
Protocol = Generic[_T]
40+
# Protocol = Generic[_T] # NNeeded for typing bug #572?
41+
Protocol = ABC
4142

4243
def runtime_checkable(f):
4344
return f

0 commit comments

Comments
 (0)