Repository navigation
Add type hints for python bindings - #3146
historicattle wants to merge 2 commits into
Conversation
Correct the number of operands for AArch64 to be 16
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## next #3146 +/- ##
=======================================
Coverage ? 61.45%
=======================================
Files ? 243
Lines ? 56829
Branches ? 10082
=======================================
Hits ? 34925
Misses ? 16708
Partials ? 5196 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Ping :) |
Use Sequence instead of tuples Fix incorrect annotations Add py.typed to tell mypy that type hints exist Fix some linter warnings
|
there was no option where i could get mypy to find out which attributes were missing, so I added a small script that checks it. (also i wasnt sure if adding to an existing workflow was appropriate? so created a new one) Also i added a (sorry the changes took a bit long :( ) |
|
Hi @historicattle, thanks for the time spent working on this and to creating this PR. I would suggest to separate formatting from addition of type annotations since they are 2 unrelated changes. if you agree I would like to have the formatting separate to not mess up with the actual changes and introduce there in the workflow the linter job. I can take care of this second part if fine for you. @Rot127 do you agree? |
|
Yes im alright with this. So i remove the black checks from |
Your checklist for this pull request
Detailed description
Add type hints for python bindings
Correct the number of operands for
AArch64to be 16 so that its the same withhttps://github.com/capstone-engine/capstone/blob/next/include/capstone/aarch64.h#L2869
Corrected the
AArch64Opclass by addingpred()and removingsysop()Fixed some linter / formatting warnings
(the changes arent as big as the diff makes it seem)
Test plan
all tests pass, no new ones added
Closing issues
closes #2841