-
Notifications
You must be signed in to change notification settings - Fork 85
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
Static Type-checking for httptools #100
base: master
Are you sure you want to change the base?
Conversation
httptools/parser/url_parser.pyi
Outdated
fragment:bytes | ||
userinfo:bytes | ||
|
||
def parse_url(url:Union[bytes, bytearray, memoryview, array]) -> URL: |
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 think you should add spaces after colons for type annotations
On Wed, Jul 17, 2024 at 5:11 AM David Grigorenko ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In httptools/parser/url_parser.pyi
<#100 (comment)>:
> @@ -0,0 +1,29 @@
+from typing import Union
+from array import array
+
+class URL:
+ schema:bytes
+ host:bytes
+ port:int
+ path:bytes
+ query:bytes
+ fragment:bytes
+ userinfo:bytes
+
+def parse_url(url:Union[bytes, bytearray, memoryview, array]) -> URL:
I think you should add spaces after colons for type annotations
—
Reply to this email directly, view it on GitHub
<#100 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A3K7GGVIXG426I4JPGQSNXDZMY7MVAVCNFSM6AAAAABKCSKGNSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDCOBSGQ4TAMBXGQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
Thanks for your input I will make sure that I add that in.
|
unblock upstream PR
@DABND19 could you take a look? thanks |
Hi! I am not the maintainer of this repository, I just left my comments on this pull request :) |
thanks for the help. I was off doing other things that I had forgotten about this completely. |
I felt the need to add static type-checking to this library in order to help other programmers with using this library. I hope this pull request will help out a few people with using this library.