|
5 | 5 | from arcade import Texture, load_texture |
6 | 6 | from arcade.hitbox import HitBox, RotatableHitBox |
7 | 7 | from arcade.texture import get_default_texture |
8 | | -from arcade.types import PathOrTexture, Point |
| 8 | +from arcade.types import PathOrTexture, Point, OpenGlFilters, BlendFunctions |
9 | 9 |
|
10 | 10 | from .base import BasicSprite |
11 | 11 | from .mixins import PymunkMixin |
@@ -66,7 +66,7 @@ def __init__( |
66 | 66 | center_x: float = 0.0, |
67 | 67 | center_y: float = 0.0, |
68 | 68 | angle: float = 0.0, |
69 | | - **kwargs, |
| 69 | + **kwargs: Any, |
70 | 70 | ): |
71 | 71 | if isinstance(path_or_texture, Texture): |
72 | 72 | _texture = path_or_texture |
@@ -255,7 +255,7 @@ def properties(self) -> Dict[str, Any]: |
255 | 255 | return self._properties |
256 | 256 |
|
257 | 257 | @properties.setter |
258 | | - def properties(self, value): |
| 258 | + def properties(self, value: Dict[str, Any]): |
259 | 259 | self._properties = value |
260 | 260 |
|
261 | 261 | # --- Movement methods ----- |
@@ -313,7 +313,13 @@ def stop(self) -> None: |
313 | 313 |
|
314 | 314 | # ---- Draw Methods ---- |
315 | 315 |
|
316 | | - def draw(self, *, filter=None, pixelated=None, blend_function=None) -> None: |
| 316 | + def draw( |
| 317 | + self, |
| 318 | + *, |
| 319 | + filter: Optional[OpenGlFilters] | None = None, |
| 320 | + pixelated: Optional[bool] = None, |
| 321 | + blend_function: Optional[BlendFunctions] = None |
| 322 | + ) -> None: |
317 | 323 | """ |
318 | 324 | A debug method which draws the sprite into the current OpenGL context. |
319 | 325 |
|
@@ -399,7 +405,7 @@ def remove_from_sprite_lists(self) -> None: |
399 | 405 |
|
400 | 406 | self.physics_engines.clear() |
401 | 407 |
|
402 | | - def register_physics_engine(self, physics_engine) -> None: |
| 408 | + def register_physics_engine(self, physics_engine: Any) -> None: |
403 | 409 | """ |
404 | 410 | Register a physics engine on the sprite. |
405 | 411 | This is only needed if you actually need a reference |
|
0 commit comments