mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00

* CI: strict mypy check in github actions mypy_files.txt is a list of files that will fail the CI if mypy finds errors in them * don't need these * `Any` should be a way to silence the type checker * restrict return Any * CI: pyright in github actions * fix mistake in translating from mypy * missed another change from mypy to pyright * pin pyright version * add more paths that should trigger check * use Python instead of bash * type error for testing CI * Revert "type error for testing CI" This reverts commit 99f65f3dadf67fb18b6bbee90bd77d8dbd10f9f9. * oops * don't need to redirect output
32 lines
767 B
Python
32 lines
767 B
Python
""" FillType_* is not a real kivy type - just something to fill unknown typing. """
|
|
|
|
from typing import Any, Optional, Protocol
|
|
from ..graphics.texture import FillType_Drawable, FillType_Vec
|
|
|
|
|
|
class FillType_BindCallback(Protocol):
|
|
def __call__(self, *args: Any) -> None: ...
|
|
|
|
|
|
class FillType_Canvas:
|
|
def add(self, drawable: FillType_Drawable) -> None: ...
|
|
|
|
def clear(self) -> None: ...
|
|
|
|
def __enter__(self) -> None: ...
|
|
|
|
def __exit__(self, *args: Any) -> None: ...
|
|
|
|
|
|
class Widget:
|
|
canvas: FillType_Canvas
|
|
width: int
|
|
pos: FillType_Vec
|
|
|
|
def bind(self,
|
|
*,
|
|
pos: Optional[FillType_BindCallback] = ...,
|
|
size: Optional[FillType_BindCallback] = ...) -> None: ...
|
|
|
|
def refresh(self) -> None: ...
|