-
-
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
Isotp typing [ready] #3078
Isotp typing [ready] #3078
Conversation
8f97cf5
to
03ffb68
Compare
Codecov Report
@@ Coverage Diff @@
## master #3078 +/- ##
==========================================
- Coverage 85.32% 85.30% -0.02%
==========================================
Files 262 262
Lines 54731 54742 +11
==========================================
+ Hits 46697 46699 +2
- Misses 8034 8043 +9
|
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'll likely go over it again. I expect this to break when the sndrcv
PR is merged.
Yes, I saw a couple of nice changes in sendrcv core typing. Looking forward to have them in. |
waiting for #3059 |
1a34301
to
d75c96e
Compare
@gpotter2 Rebased and ready for merge |
@gpotter2 Rebased. |
Thanks for your feedback.. I will apply it :-) |
Applied all feedback, except |
Not using Python 2 typing format. That's annoying for sure |
Hi, thanks for this feedback. No worries ;-) At the moment, the code looks like this: def recv_raw(self, x=MTU):
# type: (int) -> Tuple[Optional[Type[Packet]], Optional[bytes], Optional[float]] # noqa: E501 Lines 166 to 167 in 4bec6ee
And you request to change it to def recv_raw(self,
x=MTU # type: int
):
# type: (...) -> Tuple[Optional[Type[Packet]], Optional[bytes], Optional[float]] # noqa: E501 I just wanted to get this right, since I thought the intention of the multiline typing is to save noqa's, which would not be the case in this change. Thanks for your support! I've resend this answer to have markdown support. |
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.
Conflicts otherwise lgtm
Sorry for the late answer polybassa, to answer your question, you are right that in this case (return type takes most of the space) it makes more sense to stay single line. I've fixed the conflicts |
No description provided.