]> git.ipfire.org Git - thirdparty/starlette.git/commit
Implement __repr__ for route classes (#1864)
authorAlex Oleshkevich <alex.oleshkevich@gmail.com>
Fri, 23 Sep 2022 12:54:55 +0000 (15:54 +0300)
committerGitHub <noreply@github.com>
Fri, 23 Sep 2022 12:54:55 +0000 (14:54 +0200)
commit70971eac55e5c8821d9e6af5fcf7bb995cc10570
tree118dc67c8ac04f584866a1d95f9e160ec0d92cf2
parente89e13168605607368496b912ef0e90156ca7e43
Implement __repr__ for route classes (#1864)

* implement __repr__ for Route

* implemenr __repr__ for WebSocketRoute, Host, and Mount.

* fix linting issues

* change repr format

* force repr() for inner apps

* Update starlette/routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update starlette/routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* Update tests/test_routing.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
* fix linting issues and tests

* remove repr from Router

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
starlette/routing.py
tests/test_routing.py