gdb: gdbarch*.py, copyright.py: add type annotations
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 27 Feb 2023 01:14:00 +0000 (20:14 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 27 Feb 2023 18:28:32 +0000 (13:28 -0500)
commit116e3492f2945d46db44d921f0b5eb03c58d5c93
tree8c709212c7658170414c503b009a7991fae6d56a
parent05e4e893736c870ad5d2fd4e7ea8d95a94cdff3c
gdb: gdbarch*.py, copyright.py: add type annotations

Add type annotations to gdbarch*.py to fix all errors shown by pyright.
There is one change in copyright.py too, to fix this one:

    /home/simark/src/binutils-gdb/gdb/gdbarch.py
      /home/simark/src/binutils-gdb/gdb/gdbarch.py:206:13 - error: Type of "copyright" is partially unknown
        Type of "copyright" is "(tool: Unknown, description: Unknown) -> str" (reportUnknownMemberType)

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