]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commit
✨ Implement __repr__ methods for path parameters to simplify debugging (#1560)
authorRupsi Kaushik <rkaus053@uottawa.ca>
Fri, 12 Jun 2020 23:22:30 +0000 (19:22 -0400)
committerGitHub <noreply@github.com>
Fri, 12 Jun 2020 23:22:30 +0000 (01:22 +0200)
commit3699e17212e1bf0f28627dc4617c5d0714502571
tree2ec05ebe6fec3447bf17321d207bc2472056a90c
parent8231fbede410ae2eab18b3dd18afc8f74a71f84d
✨ Implement __repr__ methods for path parameters to simplify debugging (#1560)

* repr description added to Depends class

* repr description added to Security subclass

* get rid of __repr__ in security since it will inherit from super

* make code format consistent with rest

* add desc for rest of the classes

* Update fastapi/params.py

remove trailing whitespace

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Implement __repr__

* fix formatting

* formatting again

* ran formatting

* added basic testing

* basic tests added to rest of the classes

* added more test coverage and simplified test file

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
Co-authored-by: Jayati Shrivastava <gaurijove@gmail.com>
fastapi/params.py
tests/test_params_repr.py [new file with mode: 0644]