Skip to content

Commit c4b0b3a

Browse files
pyright: Fix ErrorHandler taking Response | None
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
1 parent 2cfc453 commit c4b0b3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/httpserver_testcase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from pytest_httpserver import HTTPServer
1313
from werkzeug.wrappers import Request, Response
1414

15-
ErrorHandler = Optional[Callable[[Request], Response]]
15+
ErrorHandler = Optional[Callable[[Request], Response | None]]
1616
except ImportError:
1717
pytest.skip(allow_module_level=True)
1818
sys.exit(0) # Let pyright know that this is a dead end

0 commit comments

Comments
 (0)