We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1d7cc commit 78c2eacCopy full SHA for 78c2eac
docs/user/Interoperability.md
@@ -262,17 +262,17 @@ import polyglot
262
import numpy
263
264
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,
+ is_number=True,
+ fitsInByte=lambda v: -128 <= v < 128,
+ fitsInShort=lambda v: -0x8000 <= v < 0x8000,
+ fitsInInt = True,
+ fitsInLong = True,
+ fitsInBigInteger = True,
+ asByte = int,
+ asShort = int,
+ asInt = int,
+ asLong = int,
+ asBigInteger = int,
276
)
277
```
278
0 commit comments