Hello MartinThoma, yes it's still me, two years later :-)
Do you happen to know what was the idea behind having only 2-tuples of strings allowed in roles?
|
role: Optional[Union[Tuple[str, str], Tuple[Tuple[str, str]], str]] = ..., |
I think I'd like to replace it with str | list[str] | list[list[str]] | None (or, well, the Union & Optional -based equivalent, for pre-3.10 compatibility, I suppose we still care about that since it's not currently EOL? But your call of course)
Thoughts? I'll probably be making the PR, if you don't like it or have a rationale why it is the way it currently is, then do close & share. :-)
Hello MartinThoma, yes it's still me, two years later :-)
Do you happen to know what was the idea behind having only 2-tuples of strings allowed in roles?
flask-httpauth-stubs/flask_httpauth-stubs/__init__.pyi
Line 44 in a9ecbc2
I think I'd like to replace it with
str | list[str] | list[list[str]] | None(or, well, the Union & Optional -based equivalent, for pre-3.10 compatibility, I suppose we still care about that since it's not currently EOL? But your call of course)Thoughts? I'll probably be making the PR, if you don't like it or have a rationale why it is the way it currently is, then do close & share. :-)