Skip to content

Instantly share code, notes, and snippets.

@mypy-play
Created June 3, 2025 16:42
Show Gist options
  • Save mypy-play/f5142317ce519b97b01787db03e8a594 to your computer and use it in GitHub Desktop.
Save mypy-play/f5142317ce519b97b01787db03e8a594 to your computer and use it in GitHub Desktop.
Shared via mypy Playground
import numpy.typing as npt
import numpy as np
def foo() -> npt.NDArray:
return np.zeros((2, 3), dtype=np.float32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment