Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
TYP: stub numpy.testing.overrides
  • Loading branch information
jorenham authored and charris committed Feb 5, 2025
commit 03adb26b417f86ed38a33960800493b97e1c6ab5
11 changes: 11 additions & 0 deletions numpy/testing/overrides.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from collections.abc import Callable, Hashable
from typing import Any

from typing_extensions import TypeIs

import numpy as np

def get_overridable_numpy_ufuncs() -> set[np.ufunc]: ...
def get_overridable_numpy_array_functions() -> set[Callable[..., Any]]: ...
def allows_array_ufunc_override(func: object) -> TypeIs[np.ufunc]: ...
def allows_array_function_override(func: Hashable) -> bool: ...