-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
#2158 - Add Hinty for plist.py - Adds mypy from Issue #2158 #2358
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
Conversation
Thanks for your PR. See my comment. |
Codecov Report
@@ Coverage Diff @@
## master #2358 +/- ##
==========================================
+ Coverage 87.8% 87.82% +0.01%
==========================================
Files 243 243
Lines 50735 50749 +14
==========================================
+ Hits 44549 44570 +21
+ Misses 6186 6179 -7
|
4 build jobs are failing with the following error Not sure what is causing that |
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.
I did a complete review and commented on the types that can be stricter.
One test in regression.uts is failing because of the addition to extlib.py made in this commit.
Seems like the extlib import is failing even when it's not supposed to. But I cannot figure out what's causing that. |
This fixes the issue:
|
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.
I made one final comment.
scapy/plist.py
Outdated
@@ -13,16 +13,20 @@ | |||
import os | |||
from collections import defaultdict | |||
|
|||
|
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 changes is not needed. Can you remove it?
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.
I've removed this change
Don't worry about AppVeyor. |
Not all functions were covered due to mypy issues
Cannot determine type after isInstance check - PacketList.init()
python/mypy#6846
Issue when a None method is recasted using an inner def - PacketList.conversations()
python/mypy#2608
part of #2158