| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent b55cf65 commit 76394d4
3 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -76,7 +76,7 @@ def refresh(path: Optional[PathLike] = None) -> None: | |||
| 76 | 76 | if not Git.refresh(path=path): | |
| 77 | 77 | return | |
| 78 | 78 | if not FetchInfo.refresh(): | |
| 79 | - return | ||
| 79 | + return # type: ignore [unreachable] | ||
| 80 | 80 | ||
| 81 | 81 | GIT_OK = True | |
| 82 | 82 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -265,8 +265,8 @@ def get_config_path(config_level: Lit_config_levels) -> str: | |||
| 265 | 265 | raise ValueError("No repo to get repository configuration from. Use Repo._get_config_path") | |
| 266 | 266 | else: | |
| 267 | 267 | # Should not reach here. Will raise ValueError if does. Static typing will warn missing elifs | |
| 268 | - assert_never( | ||
| 269 | - config_level, # type: ignore[unreachable] | ||
| 268 | + assert_never( # type: ignore[unreachable] | ||
| 269 | + config_level, | ||
| 270 | 270 | ValueError(f"Invalid configuration level: {config_level!r}"), | |
| 271 | 271 | ) | |
| 272 | 272 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -549,8 +549,8 @@ def _get_config_path(self, config_level: Lit_config_levels, git_dir: Optional[Pa | |||
| 549 | 549 | return osp.normpath(osp.join(repo_dir, "config")) | |
| 550 | 550 | else: | |
| 551 | 551 | ||
| 552 | - assert_never( | ||
| 553 | - config_level, # type:ignore[unreachable] | ||
| 552 | + assert_never( # type:ignore[unreachable] | ||
| 553 | + config_level, | ||
| 554 | 554 | ValueError(f"Invalid configuration level: {config_level!r}"), | |
| 555 | 555 | ) | |
| 556 | 556 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments