Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -296,4 +296,4 @@ commands = [
extend-ignore-identifiers-re = ['ND|nd|nin|NIN|TYP']

[tool.typos.files]
extend-exclude = ["*.pyi", ".mypyignore"]
extend-exclude = ["*.pyi", "tool/allowlists/*.txt"]
8 changes: 7 additions & 1 deletion src/numpy-stubs/_core/_simd.pyi
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import sys
from types import ModuleType
from typing import TypedDict, type_check_only

# NOTE: these 5 areonly defined on systems with an intel processor
# NOTE: these 6 are only defined on systems with an intel processor
SSE42: ModuleType | None = ...
FMA3: ModuleType | None = ...
AVX2: ModuleType | None = ...
AVX512F: ModuleType | None = ...
AVX512_SKX: ModuleType | None = ...
if sys.platform == "linux":
X86_V4: ModuleType | None = ...

baseline: ModuleType | None = ...

@type_check_only
Expand All @@ -16,6 +20,8 @@ class SimdTargets(TypedDict):
FMA3: ModuleType | None
AVX512F: ModuleType | None
AVX512_SKX: ModuleType | None
X86_V4: ModuleType | None

baseline: ModuleType | None

targets: SimdTargets = ...
Expand Down
4 changes: 4 additions & 0 deletions tool/allowlists/py312.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

numpy\.distutils
numpy\.f2py\._backends\._distutils

# false positive "... is not a Union" errors
numpy\.typing\.ArrayLike
numpy\.typing\.DTypeLike
4 changes: 4 additions & 0 deletions tool/allowlists/py313.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@

numpy\.distutils
numpy\.f2py\._backends\._distutils

# false positive "... is not a Union" errors
numpy\.typing\.ArrayLike
numpy\.typing\.DTypeLike
5 changes: 4 additions & 1 deletion tool/allowlists/py314.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@

numpy\.distutils
numpy\.f2py\._backends\._distutils
numpy\._core\._type_aliases\.__conditional_annotations__

# false positive "... is not a Union" errors
numpy\.typing\.ArrayLike
numpy\.typing\.DTypeLike
1 change: 1 addition & 0 deletions tool/allowlists/simd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ numpy\._core\._simd\.FMA3
numpy\._core\._simd\.AVX2
numpy\._core\._simd\.AVX512F
numpy\._core\._simd\.AVX512_SKX
# numpy\._core\._simd\.X86_V4
Loading