(x)
| 298 | |
| 299 | |
| 300 | def _nonempty_scalar(x): |
| 301 | if type(x) in make_scalar._lookup: |
| 302 | return make_scalar(x) |
| 303 | |
| 304 | if np.isscalar(x): |
| 305 | dtype = x.dtype if hasattr(x, "dtype") else np.dtype(type(x)) |
| 306 | return make_scalar(dtype) |
| 307 | |
| 308 | if x is pd.NA: |
| 309 | return pd.NA |
| 310 | |
| 311 | raise TypeError(f"Can't handle meta of type '{typename(type(x))}'") |
| 312 | |
| 313 | |
| 314 | def check_meta(x, meta, funcname=None, numeric_equal=True): |
no test coverage detected
searching dependent graphs…