Skip to content

Commit

Permalink
Merge pull request #1696 from MightyJosip/stubs
Browse files Browse the repository at this point in the history
Added type hints for fastevent
  • Loading branch information
illume committed May 3, 2020
2 parents d4e8dee + 316601d commit 990cd58
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions buildconfig/pygame-stubs/__init__.pyi
Expand Up @@ -29,6 +29,7 @@ import pygame.pixelcopy
import pygame.sndarray
import pygame.surfarray
import pygame.math
import pygame.fastevent

# Other
import pygame.scrap
Expand Down
10 changes: 10 additions & 0 deletions buildconfig/pygame-stubs/fastevent.pyi
@@ -0,0 +1,10 @@
from typing import List
from pygame.event import EventType

def init() -> None: ...
def get_init() -> bool: ...
def pump() -> None: ...
def wait() -> EventType: ...
def pool() -> EventType: ...
def get() -> List[EventType]: ...
def post(event: EventType) -> None: ...

0 comments on commit 990cd58

Please sign in to comment.