| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e984bfe commit 5d7e55b
7 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -846,7 +846,7 @@ def __del__(self) -> None: | |||
| 846 | 846 | self._stream.read(bytes_left + 1) | |
| 847 | 847 | # END handle incomplete read | |
| 848 | 848 | ||
| 849 | - def __init__(self, working_dir: Union[None, PathLike] = None): | ||
| 849 | + def __init__(self, working_dir: Union[None, PathLike] = None) -> None: | ||
| 850 | 850 | """Initialize this instance with: | |
| 851 | 851 | ||
| 852 | 852 | :param working_dir: | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,7 +55,7 @@ class Object(LazyMixin): | |||
| 55 | 55 | ||
| 56 | 56 | type: Union[Lit_commit_ish, None] = None | |
| 57 | 57 | ||
| 58 | - def __init__(self, repo: "Repo", binsha: bytes): | ||
| 58 | + def __init__(self, repo: "Repo", binsha: bytes) -> None: | ||
| 59 | 59 | """Initialize an object by identifying it by its binary sha. | |
| 60 | 60 | ||
| 61 | 61 | All keyword arguments will be set on demand if ``None``. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -56,7 +56,7 @@ class RootModule(Submodule): | |||
| 56 | 56 | ||
| 57 | 57 | k_root_name = "__ROOT__" | |
| 58 | 58 | ||
| 59 | - def __init__(self, repo: "Repo"): | ||
| 59 | + def __init__(self, repo: "Repo") -> None: | ||
| 60 | 60 | # repo, binsha, mode=None, path=None, name = None, parent_commit=None, url=None, ref=None) | |
| 61 | 61 | super().__init__( | |
| 62 | 62 | repo, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -44,7 +44,7 @@ class HEAD(SymbolicReference): | |||
| 44 | 44 | ||
| 45 | 45 | __slots__ = () | |
| 46 | 46 | ||
| 47 | - def __init__(self, repo: "Repo", path: PathLike = _HEAD_NAME): | ||
| 47 | + def __init__(self, repo: "Repo", path: PathLike = _HEAD_NAME) -> None: | ||
| 48 | 48 | if path != self._HEAD_NAME: | |
| 49 | 49 | raise ValueError("HEAD instance must point to %r, got %r" % (self._HEAD_NAME, path)) | |
| 50 | 50 | super().__init__(repo, path) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -164,7 +164,7 @@ def __new__(cls, filepath: Union[PathLike, None] = None) -> "RefLog": | |||
| 164 | 164 | inst = super().__new__(cls) | |
| 165 | 165 | return inst | |
| 166 | 166 | ||
| 167 | - def __init__(self, filepath: Union[PathLike, None] = None): | ||
| 167 | + def __init__(self, filepath: Union[PathLike, None] = None) -> None: | ||
| 168 | 168 | """Initialize this instance with an optional filepath, from which we will | |
| 169 | 169 | initialize our data. The path is also used to write changes back using the | |
| 170 | 170 | :meth:`write` method.""" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,7 +74,7 @@ class SymbolicReference: | |||
| 74 | 74 | _remote_common_path_default = "refs/remotes" | |
| 75 | 75 | _id_attribute_ = "name" | |
| 76 | 76 | ||
| 77 | - def __init__(self, repo: "Repo", path: PathLike, check_path: bool = False): | ||
| 77 | + def __init__(self, repo: "Repo", path: PathLike, check_path: bool = False) -> None: | ||
| 78 | 78 | self.repo = repo | |
| 79 | 79 | self.path = path | |
| 80 | 80 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -917,7 +917,7 @@ class Stats: | |||
| 917 | 917 | ||
| 918 | 918 | __slots__ = ("total", "files") | |
| 919 | 919 | ||
| 920 | - def __init__(self, total: Total_TD, files: Dict[PathLike, Files_TD]): | ||
| 920 | + def __init__(self, total: Total_TD, files: Dict[PathLike, Files_TD]) -> None: | ||
| 921 | 921 | self.total = total | |
| 922 | 922 | self.files = files | |
| 923 | 923 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments