text: Title: Add `float("inf")` support
  Body: `float("inf")` is probably the widest used variant for specifying infinity, so would be nice to support. Workaround is to use `np.inf` instead, so not super important.