pmb: Add more types and fix type errors (MR 2514)

This commit is contained in:
Newbyte 2024-12-20 16:29:33 +01:00
parent 3ee75e61a5
commit 01264bd39f
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
6 changed files with 102 additions and 38 deletions

View file

@ -129,7 +129,7 @@ def parse_suffix(rest: str) -> tuple[str, int, bool]:
return (rest, 0, True)
def get_token(previous, rest):
def get_token(previous: str, rest: str) -> tuple[str, int, str]:
"""
This function does three things:
* get the next token