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

Commit88de05a

Browse files
committed
Remove useless if
1 parent72ee717 commit88de05a

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

‎bpython/autocomplete.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -571,15 +571,15 @@ def matches(
571571
r=self.locate(cursor_offset,line)
572572
ifrisNone:
573573
returnNone
574-
ifargspec:
575-
matches= {
576-
f"{name}="
577-
fornameinargspec[1][0]
578-
ifisinstance(name,str)andname.startswith(r.word)
579-
}
580-
matches.update(
581-
name+"="fornameinargspec[1][4]ifname.startswith(r.word)
582-
)
574+
575+
matches= {
576+
f"{name}="
577+
fornameinargspec[1][0]
578+
ifisinstance(name,str)andname.startswith(r.word)
579+
}
580+
matches.update(
581+
name+"="fornameinargspec[1][4]ifname.startswith(r.word)
582+
)
583583
returnmatchesifmatcheselseNone
584584

585585
deflocate(self,cursor_offset:int,line:str)->Optional[LinePart]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp