-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Hinty] Type hinting: prepare tests & setup Mypy #2162
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2162 +/- ##
==========================================
- Coverage 84.78% 83.97% -0.81%
==========================================
Files 202 194 -8
Lines 46098 44686 -1412
==========================================
- Hits 39082 37525 -1557
- Misses 7016 7161 +145
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really cool PR!
See my comments/remarks.
This is going to be quite some work. After having done @guedou Below is a guide on how to contribute. Should we put it somewhere? Guide on how to contribute
|
Another note: Should we then choose to remove |
abd5875
to
4fd233a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my comments.
@gpotter2 the guide can be integrated into |
BTW, |
BTW, can you remove line 2502 from scapy/contrib/http2.py ? |
I think I've addressed all your points. I've also added Also, it's up to you to merge that before 2.4.3. As we don't require typing, it shouldn't have much effect... |
285d0c9
to
1177ec4
Compare
Should be ready to merge |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an awesome work again @gpotter2.
Could you rebase against current master?
Rebased |
Your call, @guedou. |
This was supposed to be #2158. |
Oh, I forgot about it ...
|
This PR provides the tools, scripts and tests required to start "Project Hinty" = adding type hinting into Scapy.
pyannotate
to generate type hintingmain.py
and__init__.py
. Becausehttp2.py
had also been done previously, it was also included.