23.3.0
Y011/Y014/Y015: Allow math
constants math.inf
, math.nan
, math.e
, math.pi
, math.tau
, and their negatives in default values. Some other semantically equivalent values, such as x = inf
(from math import inf
), or x = np.inf
(import numpy as np
), should be rewritten to x = math.inf
. Contributed by XuehaiPan.