Skip to content

Commit eff94fa

Browse files
committed
Fix typing in Server.route
1 parent 615290d commit eff94fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_httpserver/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"""
99

1010
try:
11-
from typing import Callable, Protocol, Union, List, Set, Tuple, Dict
11+
from typing import Callable, Protocol, Union, List, Tuple, Dict, Iterable
1212
from socket import socket
1313
from socketpool import SocketPool
1414
except ImportError:
@@ -80,7 +80,7 @@ def __init__(
8080
def route(
8181
self,
8282
path: str,
83-
methods: Union[str, Set[str]] = GET,
83+
methods: Union[str, Iterable[str]] = GET,
8484
*,
8585
append_slash: bool = False,
8686
) -> Callable:

0 commit comments

Comments
 (0)