Skip to content

Commit 2e4bcaf

Browse files
committed
Fix for typing.
1 parent a97ca8e commit 2e4bcaf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mocket/mocks/mockhttp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import time
33
from functools import cached_property
44
from http.server import BaseHTTPRequestHandler
5-
from typing import Callable
5+
from typing import Callable, Optional
66
from urllib.parse import parse_qs, unquote, urlsplit
77

88
from h11 import SERVER, Connection, Data
@@ -150,7 +150,7 @@ def __init__(
150150
method,
151151
responses,
152152
match_querystring: bool = True,
153-
can_handle_fun: Callable | None = None,
153+
can_handle_fun: Optional[Callable] = None,
154154
):
155155
self._can_handle_fun = can_handle_fun if can_handle_fun else self._can_handle
156156

0 commit comments

Comments
 (0)