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

Commit746ab74

Browse files
committed
mymax: fixed mysterious mypy error with optional callable arg using type alias
1 parenta676fad commit746ab74

File tree

1 file changed

+1
-0
lines changed
  • less_than/max_steps/04_multi_args_key

1 file changed

+1
-0
lines changed

‎less_than/max_steps/04_multi_args_key/mymax.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def __lt__(self, other: Any) -> bool:
2121
LessT=TypeVar('LessT',bound=SupportsLessThan)
2222
KeyFun=Callable[[T],LessT]
2323

24+
2425
@overload
2526
defmax(first:LessT,*rest:LessT,key:None= ...)->LessT:
2627
...

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp