File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -1017,9 +1017,7 @@ def get_higher_type(a: type, b: type) -> type:
1017
1017
a , b = _maybe_get_pytype (a ), _maybe_get_pytype (b )
1018
1018
# Type checking
1019
1019
if a not in _ordered_types or b not in _ordered_types :
1020
- raise RuntimeError (
1021
- f"Expected builtin numeric types, found { type (a )} , { type (b )} "
1022
- )
1020
+ raise RuntimeError (f"Expected builtin numeric types, found { a } , { b } " )
1023
1021
1024
1022
if a is b :
1025
1023
return a
@@ -1122,9 +1120,7 @@ def is_weakly_lesser_type(a: type, b: type) -> bool:
1122
1120
a , b = _maybe_get_pytype (a ), _maybe_get_pytype (b )
1123
1121
1124
1122
if a not in _ordered_types or b not in _ordered_types :
1125
- raise RuntimeError (
1126
- f"Expected builtin numeric types, found { type (a )} , { type (b )} "
1127
- )
1123
+ raise RuntimeError (f"Expected builtin numeric types, found { a } , { b } " )
1128
1124
1129
1125
for typ in _ordered_types :
1130
1126
if a == typ :
You can’t perform that action at this time.
0 commit comments