Skip to content

Commit f64696a

Browse files
committed
Appease the linter.
1 parent 26f9973 commit f64696a

File tree

4 files changed

+2
-12
lines changed

4 files changed

+2
-12
lines changed

typed_python/compiler/tests/held_class_compilation_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import unittest
22
import time
3-
import sys
43
from typed_python import _types
54
from typed_python import Class, Final, ListOf, Held, Member, Entrypoint, Forward
65

typed_python/compiler/tests/held_class_interpreter_semantics_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def f(l):
158158
def g(l):
159159
return pointerTo(l[0])
160160

161-
aList = ListOf(H)([H(x=10,y=20)])
161+
aList = ListOf(H)([H(x=10, y=20)])
162162

163163
f(aList)[0].x = 20
164164

typed_python/compiler/tests/tuple_of_compilation_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,4 +256,3 @@ def addItLst(aTup: TupleOf(int), x: int):
256256

257257
assert addIt((1, 2), 3) == (3, 1, 2)
258258
assert addItLst((1, 2), 3) == (3, 1, 2)
259-

typed_python/compiler/type_wrappers/tuple_of_wrapper.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
from typed_python import Int32, TupleOf, ListOf, Tuple, NamedTuple, Class, Final, Member, pointerTo, PointerTo
2929

30-
from typed_python.compiler.type_wrappers.util import min
30+
from typed_python.compiler.type_wrappers.util import min, max
3131

3232
import typed_python.compiler.native_ast as native_ast
3333
import typed_python.compiler
@@ -110,14 +110,6 @@ def tuple_of_hash(instance):
110110
return val
111111

112112

113-
def min(a, b):
114-
return a if a < b else b
115-
116-
117-
def max(a, b):
118-
return b if a < b else a
119-
120-
121113
class PreReservedTupleOrList(CompilableBuiltin):
122114
def __init__(self, tupleType):
123115
super().__init__()

0 commit comments

Comments
 (0)