CLN: in common.py merged _dtype_from_scalar and _infer_dtype
     yield _infer_dtype_from_scalar