mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-22 17:23:06 +00:00
Add Symbol constructor type annotation and documentation
Fixes: d1ebf5e9fe
("python: Allow construction of Symbol objects")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
parent
c92786e477
commit
991e674d57
18
_drgn.pyi
18
_drgn.pyi
@ -1608,6 +1608,24 @@ class Symbol:
|
||||
identifier along with its corresponding address range in the program.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
name: str,
|
||||
address: int,
|
||||
size: int,
|
||||
binding: SymbolBinding,
|
||||
kind: SymbolKind,
|
||||
) -> None:
|
||||
"""
|
||||
Create a ``Symbol``.
|
||||
|
||||
:param name: :attr:`Symbol.name`
|
||||
:param address: :attr:`Symbol.address`
|
||||
:param size: :attr:`Symbol.size`
|
||||
:param binding: :attr:`Symbol.binding`
|
||||
:param kind: :attr:`Symbol.kind`
|
||||
"""
|
||||
...
|
||||
name: Final[str]
|
||||
"""Name of this symbol."""
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user