Commit Graph

3 Commits

Author SHA1 Message Date
Viicos 7c8ca17773
Use mypy `strict` (#2180)
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
2023-07-23 15:41:50 -06:00
Marcelo Trylesinski 865efebac9
Fix `FloatConvertor` regex (#1973)
* Bugfix of regex at FloatConvertor (version 2)

For passing your checks of https://github.com/encode/starlette/pull/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.

* Add test

Co-authored-by: Ching <thus.kindly@gmail.com>
2022-12-03 12:16:16 +01:00
Marcelo Trylesinski 199fc703f3
Add custom URL convertor register (#1437)
* Add register that allows custom URL convertors

* Add tests

* Simplify tests and refresh CONTENT_TYPES

* Add docs

* Simplify datetime import

* Ups

* Fix remove last dt
2022-01-28 17:48:22 +01:00