Skip to content

Config with default of None requires type annotation unnecessarily #1730

Answered by Kludex
chdsbd asked this question in Potential Issue
Discussion options

You must be logged in to vote

hmmm... Isn't the above this case:

@typing.overload
def __call__(
self, key: str, cast: typing.Type[str] = ..., default: T = ...
) -> typing.Union[T, str]: # pragma: no cover
...
?

Would you accept a PR to fix this?

But yes...

Replies: 1 comment

Comment options

Kludex
Jul 3, 2022
Maintainer Sponsor

You must be logged in to vote
0 replies
Answer selected by chdsbd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants