|
65 | 65 | # Standard Library |
66 | 66 | from contextlib import contextmanager |
67 | 67 | from functools import wraps |
68 | | -from typing import Optional, Union, TYPE_CHECKING, Callable, Generator |
| 68 | +from typing import TYPE_CHECKING, Callable, Generator, Optional, Union |
69 | 69 |
|
70 | 70 | # pygit2 |
71 | | -from ._pygit2 import Oid, DiffFile |
| 71 | +from ._pygit2 import DiffFile, Oid |
| 72 | +from .credentials import Keypair, Username, UserPass |
72 | 73 | from .enums import CheckoutNotify, CheckoutStrategy, CredentialType, StashApplyProgress |
73 | | -from .errors import check_error, Passthrough |
74 | | -from .ffi import ffi, C |
75 | | -from .utils import maybe_string, to_bytes, ptr_to_bytes, StrArray |
76 | | -from .credentials import Username, UserPass, Keypair |
| 74 | +from .errors import Passthrough, check_error |
| 75 | +from .ffi import C, ffi |
| 76 | +from .utils import StrArray, maybe_string, ptr_to_bytes, to_bytes |
77 | 77 |
|
78 | 78 | _Credentials = Username | UserPass | Keypair |
79 | 79 |
|
80 | 80 | if TYPE_CHECKING: |
81 | | - from .remotes import TransferProgress |
82 | | - from ._pygit2 import PushOptions, CloneOptions |
83 | 81 | from pygit2._libgit2.ffi import GitProxyOptionsC |
| 82 | + |
| 83 | + from ._pygit2 import CloneOptions, PushOptions |
| 84 | + from .remotes import TransferProgress |
84 | 85 | # |
85 | 86 | # The payload is the way to pass information from the pygit2 API, through |
86 | 87 | # libgit2, to the Python callbacks. And back. |
|
0 commit comments