Skip to content

Commit 78c2eac

Browse files
committed
fix wrong indent of interop_behavior code example.
A comma was missing and the auto formatter got confused
1 parent ed1d7cc commit 78c2eac

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/user/Interoperability.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -262,17 +262,17 @@ import polyglot
262262
import numpy
263263

264264
polyglot.register_interop_behavior(numpy.int32,
265-
is_number=True,
266-
fitsInByte=lambda v: -128 <= v < 128,
267-
fitsInShort=lambda v: -0x8000 <= v < 0x8000
268-
fitsInInt = True,
269-
fitsInLong = True,
270-
fitsInBigInteger = True,
271-
asByte = int,
272-
asShort = int,
273-
asInt = int,
274-
asLong = int,
275-
asBigInteger = int,
265+
is_number=True,
266+
fitsInByte=lambda v: -128 <= v < 128,
267+
fitsInShort=lambda v: -0x8000 <= v < 0x8000,
268+
fitsInInt = True,
269+
fitsInLong = True,
270+
fitsInBigInteger = True,
271+
asByte = int,
272+
asShort = int,
273+
asInt = int,
274+
asLong = int,
275+
asBigInteger = int,
276276
)
277277
```
278278

0 commit comments

Comments
 (0)