fix type annotations and default argument

This commit is contained in:
Jeff Epler 2021-09-21 07:41:25 -05:00
parent 72bfd39a17
commit 91223c8d97
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
//| class Event:
//| """A key transition event."""
//| def __init__(self, key_number: int=0, pressed: bool=True, timestamp:int=-1) -> None:
//| def __init__(self, key_number: int=0, pressed: bool=True, timestamp:Optional[int]=None) -> None:
//| """Create a key transition event, which reports a key-pressed or key-released transition.
//|
//| :param int key_number: the key number