Skip to content

Commit 3d70a2c

Browse files
committed
chore(typing): Consolidate typing.Protocol as of python 3.8
1 parent 3d9ab89 commit 3d70a2c

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/libtmux/_internal/query_list.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@
88
import traceback
99
from collections.abc import Mapping, Sequence
1010
from re import Pattern
11-
from typing import TYPE_CHECKING, Any, Callable, List, Optional, TypeVar, Union
11+
from typing import (
12+
TYPE_CHECKING,
13+
Any,
14+
Callable,
15+
List,
16+
Optional,
17+
Protocol,
18+
TypeVar,
19+
Union,
20+
)
1221

1322
if TYPE_CHECKING:
14-
from typing_extensions import Protocol
1523

1624
class LookupProtocol(Protocol):
1725
"""Protocol for :class:`QueryList` filtering operators."""

0 commit comments

Comments
 (0)