]> git.ipfire.org Git - thirdparty/starlette.git/commit
Allow usage of functools.partial async handlers (#984)
authorVlad Stefan Munteanu <vladstefanmunteanu@gmail.com>
Sun, 8 Nov 2020 01:33:11 +0000 (03:33 +0200)
committerGitHub <noreply@github.com>
Sun, 8 Nov 2020 01:33:11 +0000 (17:33 -0800)
commitfe961dd22ca69741831d1beb5eac5de0da7d8878
tree94848196df7a2b19e1076ec77720cc7b0114d52c
parent7a783d3b0e381acd81079aa73058fa1394447ce4
Allow usage of functools.partial async handlers (#984)

* Allow usage of async partial methods

* Added test for partial async endpoint

* Double quotes vs single quotes

* Support multiple levels of partials, check Python < 3.8

* Skip coverage for py3.8 branch

Co-authored-by: Florimond Manca <florimond.manca@gmail.com>
starlette/routing.py
tests/test_routing.py