mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-25 16:57:52 +00:00
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:
committed by
Simon Marchi
parent
05e4e89373
commit
116e3492f2
@@ -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,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user