| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -24,11 +24,11 @@ | |||
| 24 | 24 | ||
| 25 | 25 | from subprocess import Popen | |
| 26 | 26 | ||
| 27 | - Lit_change_type = Literal['A', 'D', 'M', 'R', 'T'] | ||
| 27 | + Lit_change_type = Literal['A', 'C', 'D', 'M', 'R', 'T'] | ||
| 28 | 28 | ||
| 29 | 29 | ||
| 30 | 30 | def is_change_type(inp: str) -> TypeGuard[Lit_change_type]: | |
| 31 | - return inp in ('A', 'D', 'M', 'R', 'T') | ||
| 31 | + return inp in ('A', 'D', 'C', 'M', 'R', 'T') | ||
| 32 | 32 | ||
| 33 | 33 | # ------------------------------------------------------------------------ | |
| 34 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -391,7 +391,7 @@ def add(cls, repo: 'Repo', name: str, path: PathLike, url: Union[str, None] = No | |||
| 391 | 391 | if sm.exists(): | |
| 392 | 392 | # reretrieve submodule from tree | |
| 393 | 393 | try: | |
| 394 | - sm = repo.head.commit.tree[path] | ||
| 394 | + sm = repo.head.commit.tree[path] # type: ignore | ||
| 395 | 395 | sm._name = name | |
| 396 | 396 | return sm | |
| 397 | 397 | except KeyError: | |
| Back | FazBrowse Home | New Git URL |
0 commit comments