Commit 131bb3c
committed
pytest_httpserver/httpserver.py: make mypy compatible with werkzeug 3.0.0
In werkzeug 3.0.0 they removed the attributes which were previously
announced, but mypy complains about this, even if I add hasattr() check.
This is the error thrown by mypy:
```
pytest_httpserver/httpserver.py:139: error: Module has no attribute "parse_authorization_header"; maybe "parse_options_header"?
```
I tried with `assert` and `if`, both with getattr and hasattr checks but
none of these worked.1 parent 3304ac2 commit 131bb3c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
0 commit comments