This commit is contained in:
wittmannzl103469 committed 2026-11-05 15:08:42 +01:00
1 parent de41a02749
commit 9af09cebd3
764 files changed
+54218 -78859

No files matched your search

@@ -1,12 +1,14 @@
from typing import Tuple
import numpy
from pygame.surface import Surface
# importing this way exports the functions in the typestubs
from pygame.pixelcopy import (
array_to_surface as array_to_surface,
surface_to_array as surface_to_array,
)
from pygame.surface import Surface
from typing_extensions import deprecated # added in 3.13
def array2d(surface: Surface) -> numpy.ndarray: ...
def pixels2d(surface: Surface) -> numpy.ndarray: ...
@@ -24,34 +26,6 @@ def array_colorkey(surface: Surface) -> numpy.ndarray: ...
def make_surface(array: numpy.ndarray) -> Surface: ...
def blit_array(surface: Surface, array: numpy.ndarray) -> None: ...
def map_array(surface: Surface, array: numpy.ndarray) -> numpy.ndarray: ...
@deprecated("Only numpy is supported")
def use_arraytype(arraytype: str) -> None: ...
@deprecated("Only numpy is supported")
def get_arraytype() -> str: ...
@deprecated("Only numpy is supported")
def get_arraytypes() -> tuple[str]: ...
# keep in sync with surfarray.py
__all__ = [
"array2d",
"array3d",
"array_alpha",
"array_blue",
"array_colorkey",
"array_green",
"array_red",
"array_to_surface",
"blit_array",
"get_arraytype",
"get_arraytypes",
"make_surface",
"map_array",
"pixels2d",
"pixels3d",
"pixels_alpha",
"pixels_blue",
"pixels_green",
"pixels_red",
"surface_to_array",
"use_arraytype",
]
def get_arraytypes() -> Tuple[str]: ...