]> git.ipfire.org Git - thirdparty/starlette.git/commit
type config with `None` default as `str | None` instead of `Any` (#1732)
authorChristopher Dignam <chris@dignam.xyz>
Sun, 10 Jul 2022 13:00:23 +0000 (09:00 -0400)
committerGitHub <noreply@github.com>
Sun, 10 Jul 2022 13:00:23 +0000 (15:00 +0200)
commit584f22e3559dda42c1334e5eee01761ffab9e3ec
tree74cda48c9dbfaaab6ecfe77a12928eb96bc09277
parent643c3f20e385341a37c851a1d12ff3c33762c300
type config with `None` default as `str | None` instead of `Any` (#1732)

* fix type annotations for config

* wip

* fix simple case

* wip

* isort

* remove mypy config change

* fix test

* fix coverage

* use assert_type

* format

* CR

* Update tests/test_config.py

Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
requirements.txt
starlette/config.py
tests/test_config.py