Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit76394d4

Browse files
committed
Ignore remaining [unreachable] type errors
1 parentb55cf65 commit76394d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎git/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def refresh(path: Optional[PathLike] = None) -> None:
7676
ifnotGit.refresh(path=path):
7777
return
7878
ifnotFetchInfo.refresh():
79-
return
79+
return# type: ignore [unreachable]
8080

8181
GIT_OK=True
8282

‎git/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,8 @@ def get_config_path(config_level: Lit_config_levels) -> str:
265265
raiseValueError("No repo to get repository configuration from. Use Repo._get_config_path")
266266
else:
267267
# 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,
270270
ValueError(f"Invalid configuration level:{config_level!r}"),
271271
)
272272

‎git/repo/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ def _get_config_path(self, config_level: Lit_config_levels, git_dir: Optional[Pa
549549
returnosp.normpath(osp.join(repo_dir,"config"))
550550
else:
551551

552-
assert_never(
553-
config_level,# type:ignore[unreachable]
552+
assert_never(# type:ignore[unreachable]
553+
config_level,
554554
ValueError(f"Invalid configuration level:{config_level!r}"),
555555
)
556556

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp