gdb: gdbarch.py: spell out parameters of _Component.__init__
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 27 Feb 2023 01:13:56 +0000 (20:13 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 27 Feb 2023 18:28:32 +0000 (13:28 -0500)
commitc4e1b10cc2e84eaf574842907e4c35ad51eb5792
tree649b7f7aabab7dcf263c4a724c1b89a299bab40f
parent09de95fbb79c31b1b163a0c19bc1f0cd428c5d8c
gdb: gdbarch.py: spell out parameters of _Component.__init__

The way _Component uses kwargs is handy to save a few characters, but it
doesn't play well with static analysis.  When editing gdbarch.py, my
editor (which uses pylance under the hood) knows nothing about the
properties of components.  So it's full of squiggly lines, and typing
analysis (which I find really helpful) doesn't work.  I therefore think
it would be better to spell out the parameters.

Change-Id: Iaf561beb0d0fbe170ce1c79252a291e0945e1830
Reviewed-By: Tom Tromey <tom@tromey.com>
Reviewed-By: Andrew Burgess <aburgess@redhat.com>
gdb/gdbarch.py