-
Notifications
You must be signed in to change notification settings - Fork 536
Add type hints #611
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pmhahn
wants to merge
38
commits into
eliben:main
Choose a base branch
from
pmhahn:typing
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add type hints #611
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
6253c5f
fixup! Modernize python code for `construct` and add types (#609)
pmhahn 0c2dc50
construct: Build _printable with a dict-comprehension
pmhahn 028653b
typing: Convert to NamedTuple
pmhahn 0c49ffb
typing: Add some Protocols
pmhahn 1d85348
typing: Add / fix PEP-484 type hints
pmhahn 5dedf0f
typing: Hint static attributes
pmhahn 82da3aa
typing: assert isinstance
pmhahn 59c93d9
typing: assert not None
pmhahn d9797b6
typing: declare before conditional
pmhahn 1c05bf3
typing: Check for None values
pmhahn 7e8055a
typing: Invert type check for _strip_type_tag
pmhahn 73aa165
typing: Check for DIE._terminator None
pmhahn 7a1fbcd
typing: Convert ATTR_DESC into Final tuple
pmhahn 402fe44
typing: describe_note_gnu_properties: Add hints
pmhahn 5dd5e56
typing: elffile.section_names list
pmhahn 4d89eff
typing: ENUM_D_TAG Mapping
pmhahn 11b9e3c
typing: get_symbol None
pmhahn e4e6ea0
typing ignore: LocationLists.entry_translate
pmhahn 384c33f
typing ignore: describe_symbol_shndx
pmhahn dce4a48
typing ignore: Dynamic.get_table_offset
pmhahn c1045e2
typing ignore: RangeLists.dwarfinfo
pmhahn 4464dc6
typing ignore: Section.__eq__
pmhahn 91ab25c
mypy: Rename `params` for type change
pmhahn 2c5af66
mypy: Rename `reveal_type` for type change
pmhahn 3720019
mypy: Rename `all_offsets` for type change
pmhahn 68c9cdd
datatype: Check for parent None
pmhahn e59feb6
LocationParser.parse_from_attribute: raise ValueError
pmhahn 3e48786
Rework get_location_list_at_offset() logic
pmhahn 57611b8
elf.description: Do not return None
pmhahn 94e509a
get_relocation_tables: Store intermediate references
pmhahn 4d4e5ae
DynamicSegment: cast to _StringTable
pmhahn 19d72f7
Dynamic.num_tags: Return None
pmhahn 3a6fc26
GNUHashTable: Store intermediate references
pmhahn 73d7098
typing: Re-implement Attribute instantiation
pmhahn 586c132
typing: add mypy configuration
pmhahn 7051c4a
typing: Fix print format
pmhahn 24376bb
elftools/ehabi/ehabiinfo.py: Fix format string
pmhahn 1631db5
test_hash.py: Mock elffile and symboltable
pmhahn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.