8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a23335 commit c885781Copy full SHA for c885781
git/objects/base.py
@@ -7,6 +7,7 @@
7
8
import gitdb.typ as dbtyp
9
import os.path as osp
10
+from typing import Optional # noqa: F401 unused import
11
12
from .util import get_object_type_by_name
13
@@ -24,7 +25,7 @@ class Object(LazyMixin):
24
25
26
TYPES = (dbtyp.str_blob_type, dbtyp.str_tree_type, dbtyp.str_commit_type, dbtyp.str_tag_type)
27
__slots__ = ("repo", "binsha", "size")
- type = None # to be set by subclass
28
+ type = None # type: Optional[str] # to be set by subclass
29
30
def __init__(self, repo, binsha):
31
"""Initialize an object by identifying it by its binary sha.
0 commit comments