Skip to content

Commit 5b14cc4

Browse files
committed
Disable formatting getBuiltinTypeItemsize
1 parent 4b7fbc4 commit 5b14cc4

File tree

1 file changed

+3
-0
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type

1 file changed

+3
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/type/TypeNodes.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2591,6 +2591,8 @@ long lookup(Object cls,
25912591
}
25922592

25932593
private static long getBuiltinTypeItemsize(PythonBuiltinClassType cls) {
2594+
// Our formatter currently forces all the case labels on a single line
2595+
// @formatter:off
25942596
return switch (cls) {
25952597
case PBytes -> 1;
25962598
case PInt -> 4;
@@ -2604,6 +2606,7 @@ private static long getBuiltinTypeItemsize(PythonBuiltinClassType cls) {
26042606
case PythonClass -> 40;
26052607
default -> 0;
26062608
};
2609+
// @formatter:on
26072610
}
26082611
}
26092612

0 commit comments

Comments
 (0)