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 0347db7 commit 74d635cCopy full SHA for 74d635c
1 file changed
jaraco/text/__init__.py
@@ -5,15 +5,12 @@
5
import re
6
import sys
7
import textwrap
8
-from collections.abc import Callable, Sequence
+from collections.abc import Callable, Generator, Iterable, Sequence
9
from typing import (
10
TYPE_CHECKING,
11
- Generator,
12
- Iterable,
13
Literal,
14
Protocol,
15
SupportsIndex,
16
- Tuple,
17
TypeVar,
18
overload,
19
)
@@ -306,7 +303,7 @@ def indent(string: str, prefix: str = ' ' * 4) -> str:
306
303
return prefix + string
307
304
308
305
309
-class WordSet(Tuple[str, ...]):
+class WordSet(tuple[str, ...]):
310
"""
311
Given an identifier, return the words that identifier represents,
312
whether in camel case, underscore-separated, etc.
0 commit comments