-
-
Notifications
You must be signed in to change notification settings - Fork 932
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
Bugfix of regex at FloatConvertor (version 2) #1944
Conversation
For passing your checks of #1942 A correct statement is: regex = r"[0-9]+(\.[0-9]+)?" Reference: https://www.flake8rules.com/rules/W605.html I have no problem to corrected without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer. Having submitted last pull-request, I realized to add a 'r' prefix to pass your tests.
Sorry I do not know that I deleted my fork of starlette to affect this pull request. Now I reopen it. This bugfix To avoid 500 Internal Server Error of http://localhost:8000/path/1-1 as route pattern is /path/{number:float} |
I checked this PR, here are my observations. Case one:
Case 2:
This results in status code 404. Is this intended behavior? |
Can you confirm that there's a 500 on the case 2 before this PR? |
This is in master.
|
Well... |
Okay, yes, I wasn't too sure about that. So yes, before PR, Case 2 results in 500. |
FYR: Here is the test used: iudeen@b429651 |
It looks like the original branch was deleted? |
For passing your checks of #1942 A correct statement is: regex = r"[0-9]+(\.[0-9]+)?" Reference: https://www.flake8rules.com/rules/W605.html
I have no problem of correction without 'r' prefix directly at /site-packages/starlette/convertors.py of my computer. Having submitted last pull-request #1942, I realized to add a 'r' prefix to pass your tests.