8000 upgrade sphinx for 3.10 compat · gitpython-developers/GitPython@c35ab1d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 5 additions & 4 deletions
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)
0