We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97ca8e commit 2e4bcafCopy full SHA for 2e4bcaf
mocket/mocks/mockhttp.py
@@ -2,7 +2,7 @@
2
import time
3
from functools import cached_property
4
from http.server import BaseHTTPRequestHandler
5
-from typing import Callable
+from typing import Callable, Optional
6
from urllib.parse import parse_qs, unquote, urlsplit
7
8
from h11 import SERVER, Connection, Data
@@ -150,7 +150,7 @@ def __init__(
150
method,
151
responses,
152
match_querystring: bool = True,
153
- can_handle_fun: Callable | None = None,
+ can_handle_fun: Optional[Callable] = None,
154
):
155
self._can_handle_fun = can_handle_fun if can_handle_fun else self._can_handle
156
0 commit comments