| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -25,6 +25,7 @@ | |||
| 25 | 25 | from .tree import Tree | |
| 26 | 26 | from .blob import Blob | |
| 27 | 27 | from .submodule.base import Submodule | |
| 28 | + from git.refs.reference import Reference | ||
| 28 | 29 | ||
| 29 | 30 | IndexObjUnion = Union['Tree', 'Blob', 'Submodule'] | |
| 30 | 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)) | |
| 60 | 61 | ||
| 61 | 62 | @classmethod | |
| 62 | - def new(cls, repo: 'Repo', id): # @ReservedAssignment | ||
| 63 | + def new(cls, repo: 'Repo', id: Union[str, 'Reference']) -> Commit_ish: | ||
| 63 | 64 | """ | |
| 64 | 65 | :return: New Object instance of a type appropriate to the object type behind | |
| 65 | 66 | id. The id of the newly created object will be a binsha even though | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -19,7 +19,7 @@ filterwarnings = 'ignore::DeprecationWarning' | |||
| 19 | 19 | # filterwarnings ignore::WarningType # ignores those warnings | |
| 20 | 20 | ||
| 21 | 21 | [tool.mypy] | |
| 22 | - disallow_untyped_defs = true | ||
| 22 | + #disallow_untyped_defs = true | ||
| 23 | 23 | no_implicit_optional = true | |
| 24 | 24 | warn_redundant_casts = true | |
| 25 | 25 | # warn_unused_ignores = True | |
| Back | FazBrowse Home | New Git URL |
0 commit comments