Skip to content

Commit

Permalink
Add type annotations to server/w_getopt.py. (#701)
Browse files Browse the repository at this point in the history
* Add typing symbols to `server/w_getopt.py`.

* Add type annotations to `server/w_getopt.py`.
  • Loading branch information
junkmd authored Dec 15, 2024
1 parent 7d1db18 commit 6ae68e4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion comtypes/server/w_getopt.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
from typing import Sequence, Tuple


class GetoptError(Exception):
pass


def w_getopt(args, options):
def w_getopt(
args: Sequence[str], options: str
) -> Tuple[Sequence[Tuple[str, str]], Sequence[str]]:
"""A getopt for Windows.
Options may start with either '-' or '/', the option names may
Expand Down

0 comments on commit 6ae68e4

Please sign in to comment.