Skip to content

Commit c09a6a1

Browse files
committed
Add comments for typing.
1 parent be31c06 commit c09a6a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_ctypes/test_win32_com_foreign_func.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ def __set_name__(self, owner, name):
4242
# NOTE: To aid understanding, adding type annotations with `typing`
4343
# would look like this.
4444
#
45-
# _ParamFlags = None | tuple[tuple[int, str] | tuple[int, str, Any], ...]
45+
# _ParamFlags = tuple[tuple[int] | tuple[int, str] | tuple[int, str, Any], ...]
4646
#
4747
# @overload
48-
# def __call__(self, paramflags: _ParamFlags, iid: GUID, /) -> Self: ...
48+
# def __call__(self, paramflags: None | _ParamFlags, iid: GUID, /) -> Self: ...
4949
# @overload
50-
# def __call__(self, paramflags: _ParamFlags, /) -> Self: ...
50+
# def __call__(self, paramflags: None | _ParamFlags, /) -> Self: ...
5151
# @overload
5252
# def __call__(self) -> Self: ...
5353
def __call__(self, *args):

0 commit comments

Comments
 (0)