MCPcopy
hub / github.com/dask/dask / is_integer

Function is_integer

dask/utils.py:566–575  ·  view source on GitHub ↗

>>> is_integer(6) True >>> is_integer(42.0) True >>> is_integer('abc') False

(i)

Source from the content-addressed store, hash-verified

564
565
566def is_integer(i) -> bool:
567 """
568 >>> is_integer(6)
569 True
570 >>> is_integer(42.0)
571 True
572 >>> is_integer('abc')
573 False
574 """
575 return isinstance(i, Integral) or (isinstance(i, float) and i.is_integer())
576
577
578ONE_ARITY_BUILTINS = {

Callers 1

read_bytesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…