Skip to content

Commit 75a1c8a

Browse files
authored
Merge branch 'main' into fix-gh-151949-lzma-sphinx-warnings
2 parents 4d92225 + 20b50f8 commit 75a1c8a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/library/getopt.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ exception:
6262
option ``--fo`` will match as ``--foo``, but ``--f`` will
6363
not match uniquely, so :exc:`GetoptError` will be raised.
6464

65+
If *longopts* is a string it gets treated as a list of a single element.
66+
6567
The return value consists of two elements: the first is a list of ``(option,
6668
value)`` pairs; the second is the list of program arguments left after the
6769
option list was stripped (this is a trailing slice of *args*). Each

Lib/test/test_ctypes/test_structures.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ class Foo:
958958
def test_string_annotations(self):
959959
from test.test_ctypes import struct_str_ann
960960
Point = struct_str_ann.Point
961-
fields = [['x', c_int], ['y', c_int]]
961+
fields = [('x', c_int), ('y', c_int)]
962962
self.assertEqual(Point._fields_, fields)
963963

964964

0 commit comments

Comments
 (0)