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

Commit98903bc

Browse files
committed
mymax: remove redundant numeric type imports
1 parente67c700 commit98903bc

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

‎less_than/max_steps/02-two_comparable/mymax.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
"""
1515

1616

17-
fromdecimalimportDecimal
18-
fromfractionsimportFraction
1917
fromtypingimportTypeVar,Protocol,Any
2018

2119

‎less_than/max_steps/03-multi_args/mymax.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
fromdecimalimportDecimal
2-
fromfractionsimportFraction
31
fromtypingimportTypeVar,Protocol,Any
42

53

‎less_than/max_steps/04_multi_args_key/mymax.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
1010
"""
1111

12-
fromdecimalimportDecimal
13-
fromfractionsimportFraction
1412
fromtypingimportTypeVar,Protocol,Any,Callable,overload
1513

1614

@@ -24,10 +22,10 @@ def __lt__(self, other: Any) -> bool:
2422

2523

2624
@overload
27-
defmax(first:LessT,*rest:LessT,key=None)->LessT:
25+
defmax(first:LessT,*rest:LessT,key:None= ...)->LessT:
2826
...
2927
@overload
30-
defmax(first:T,*rest:T,key=Callable[[T],LessT])->T:
28+
defmax(first:T,*rest:T,key:Callable[[T],LessT])->T:
3129
...
3230
defmax(first,*rest,key=None):
3331
candidate=first

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp