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>
This commit is contained in:
parent
05e4e89373
commit
116e3492f2
4 changed files with 51 additions and 49 deletions
|
@ -166,13 +166,14 @@ Number of bits in an int or unsigned int for the target machine.
|
|||
invalid=False,
|
||||
)
|
||||
|
||||
long_bit_predefault = "4*TARGET_CHAR_BIT"
|
||||
long_bit = Value(
|
||||
comment="""
|
||||
Number of bits in a long or unsigned long for the target machine.
|
||||
""",
|
||||
type="int",
|
||||
name="long_bit",
|
||||
predefault="4*TARGET_CHAR_BIT",
|
||||
predefault=long_bit_predefault,
|
||||
invalid=False,
|
||||
)
|
||||
|
||||
|
@ -183,7 +184,7 @@ machine.
|
|||
""",
|
||||
type="int",
|
||||
name="long_long_bit",
|
||||
predefault="2*" + long_bit.predefault,
|
||||
predefault="2*" + long_bit_predefault,
|
||||
invalid=False,
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue