Skip to content

Commit c87ccce

Browse files
authored
Remove a few unused TypedDicts (#8522)
1 parent 5875bf4 commit c87ccce

File tree

3 files changed

+2
-18
lines changed

3 files changed

+2
-18
lines changed

stubs/chardet/chardet/__init__.pyi

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,14 @@ if sys.version_info >= (3, 8):
88
else:
99
from typing_extensions import TypedDict
1010

11-
class _LangModelType(TypedDict):
11+
# unused in this module, but imported in multiple submodules
12+
class _LangModelType(TypedDict): # noqa: Y049
1213
char_to_order_map: tuple[int, ...]
1314
precedence_matrix: tuple[int, ...]
1415
typical_positive_ratio: float
1516
keep_english_letter: bool
1617
charset_name: str
1718
language: str
1819

19-
class _SMModelType(TypedDict):
20-
class_table: tuple[int, ...]
21-
class_factor: int
22-
state_table: tuple[int, ...]
23-
char_len_table: tuple[int, ...]
24-
name: str
25-
2620
def detect(byte_str: bytes | bytearray) -> _FinalResultType: ...
2721
def detect_all(byte_str: bytes | bytearray, ignore_threshold: bool = ...) -> list[_IntermediateResultType]: ...

stubs/emoji/emoji/core.pyi

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ from typing_extensions import Literal, TypedDict
33

44
_DEFAULT_DELIMITER: str
55

6-
class _EmojiLisReturn(TypedDict):
7-
emoji: str
8-
location: int
9-
106
class _EmojiListReturn(TypedDict):
117
emoji: str
128
match_start: int

stubs/redis/redis/asyncio/connection.pyi

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ NO_SUCH_MODULE_ERROR: str
2929
MODULE_UNLOAD_NOT_POSSIBLE_ERROR: str
3030
MODULE_EXPORTS_DATA_TYPES_ERROR: str
3131

32-
class _HiredisReaderArgs(TypedDict):
33-
protocolError: Callable[[str], Exception]
34-
replyError: Callable[[str], Exception]
35-
encoding: str | None
36-
errors: str | None
37-
3832
class Encoder:
3933
encoding: Any
4034
encoding_errors: Any

0 commit comments

Comments
 (0)