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

Commitc6dab19

Browse files
committed
Allow explicit casting even when slightly redundant
1 parent76394d4 commitc6dab19

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/cmd.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def pump_stream(
154154
p_stdout=process.proc.stdoutifprocess.procelseNone
155155
p_stderr=process.proc.stderrifprocess.procelseNone
156156
else:
157-
process=cast(Popen,process)
157+
process=cast(Popen,process)# type: ignore [redundant-cast]
158158
cmdline=getattr(process,"args","")
159159
p_stdout=process.stdout
160160
p_stderr=process.stderr

‎git/objects/commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def _iter_from_process_or_stream(cls, repo: "Repo", proc_or_stream: Union[Popen,
460460
ifproc_or_stream.stdoutisnotNone:
461461
stream=proc_or_stream.stdout
462462
elifhasattr(proc_or_stream,"readline"):
463-
proc_or_stream=cast(IO,proc_or_stream)
463+
proc_or_stream=cast(IO,proc_or_stream)# type: ignore [redundant-cast]
464464
stream=proc_or_stream
465465

466466
readline=stream.readline

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp