Correct type hint: namespace is not optional

The namespace argument is positional and will never be `None` so should
not be marked as Optional. It is always a string, and the default is
to pass in an empty string.
This commit is contained in:
Martijn Pieters
2023-04-27 16:11:59 +01:00
parent ee58f979d4
commit 32acafa5e0
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ take effect globally.
```python
def my_key_builder(
func,
namespace: Optional[str] = "",
namespace: str = "",
request: Request = None,
response: Response = None,
*args,