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 e364c5e commit 35231dbCopy full SHA for 35231db
2 files changed
git/objects/base.py
@@ -25,6 +25,7 @@
25
from .tree import Tree
26
from .blob import Blob
27
from .submodule.base import Submodule
28
+ from git.refs.reference import Reference
29
30
IndexObjUnion = Union['Tree', 'Blob', 'Submodule']
31
@@ -59,7 +60,7 @@ def __init__(self, repo: 'Repo', binsha: bytes):
59
60
assert len(binsha) == 20, "Require 20 byte binary sha, got %r, len = %i" % (binsha, len(binsha))
61
62
@classmethod
- def new(cls, repo: 'Repo', id): # @ReservedAssignment
63
+ def new(cls, repo: 'Repo', id: Union[str, 'Reference']) -> Commit_ish:
64
"""
65
:return: New Object instance of a type appropriate to the object type behind
66
id. The id of the newly created object will be a binsha even though
pyproject.toml
@@ -19,7 +19,7 @@ filterwarnings = 'ignore::DeprecationWarning'
19
# filterwarnings ignore::WarningType # ignores those warnings
20
21
[tool.mypy]
22
-disallow_untyped_defs = true
+#disallow_untyped_defs = true
23
no_implicit_optional = true
24
warn_redundant_casts = true
# warn_unused_ignores = True
0 commit comments