This repository has been archived on 2024-09-30. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hook-frida/venv/Lib/site-packages/pip/_vendor/chardet/resultdict.py
2023-08-12 16:46:30 +08:00

17 lines
402 B
Python

from typing import TYPE_CHECKING, Optional
if TYPE_CHECKING:
# TypedDict was introduced in Python 3.8.
#
# TODO: Remove the else block and TYPE_CHECKING check when dropping support
# for Python 3.7.
from typing import TypedDict
class ResultDict(TypedDict):
encoding: Optional[str]
confidence: float
language: Optional[str]
else:
ResultDict = dict