Skip to content

Commit 8114f2b

Browse files
committed
hotfix for packbuilder.py
1 parent d8755fb commit 8114f2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pygit2/packbuilder.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,18 @@
2323
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
2424
# Boston, MA 02110-1301, USA.
2525

26+
from __future__ import annotations
2627

27-
# Import from pygit2
28-
29-
from typing import Any
28+
from typing import TYPE_CHECKING, Any
3029

30+
# Import from pygit2
3131
from ._pygit2 import Oid
3232
from .errors import check_error
3333
from .ffi import C, ffi
34-
from .repository import BaseRepository
3534
from .utils import StrOrBytesOrPathLike, buffer_to_bytes, to_bytes
3635

36+
if TYPE_CHECKING:
37+
from .repository import BaseRepository
3738

3839
class PackBuilder:
3940
def __init__(self, repo: BaseRepository):

0 commit comments

Comments
 (0)