Skip to content

Commit cfa46d9

Browse files
committed
Fix: DTypeLike can't be None
1 parent 33958a8 commit cfa46d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pytools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ def add_python_path_relative_to_script(rel_path: str) -> None:
23152315
# {{{ numpy dtype mangling
23162316

23172317
def common_dtype(dtypes: Iterator[DTypeLike],
2318-
default: DTypeLike = None) -> np.dtype[Any]:
2318+
default: DTypeLike | None = None) -> np.dtype[Any]:
23192319
import numpy as np
23202320

23212321
ddtypes = [np.dtype(dtype) for dtype in dtypes]

0 commit comments

Comments
 (0)