| commit | 2eead96aeba1ec15d258b0952b37cb5d8bfc4c4a | [log] [tgz] |
|---|---|---|
| author | Andrew Burgess <aburgess@redhat.com> | Wed Apr 23 10:07:09 2025 +0100 |
| committer | Andrew Burgess <aburgess@redhat.com> | Thu Apr 24 00:13:23 2025 +0100 |
| tree | 15bba79331ea10abb662b539cf66b9853cfa3052 | |
| parent | 94f3facb2185f780b9b971330277c6d89ad8c053 [diff] |
gdb/python: keyword args for Color.__init__
GDB's Python API documentation is clear:
Functions and methods which have two or more optional arguments allow
them to be specified using keyword syntax.
The gdb.Color.__init__ method matches this description, but doesn't
support keyword arguments.
This commit fixes this by adding keyword argument support.
There's a new test to cover this functionality.
Approved-By: Tom Tromey <tom@tromey.com>