Narrower return type for east_asian_width() (#9223)

Narrower return type for east_asian_width()
This commit is contained in:
Hong Minhee (洪 民憙)
2022-11-19 14:58:13 +09:00
committed by GitHub
parent 7e77208f8a
commit 49fca14a15

View File

@@ -1,7 +1,7 @@
import sys
from _typeshed import ReadOnlyBuffer
from typing import Any, TypeVar
from typing_extensions import final
from typing_extensions import Literal, TypeAlias, final
ucd_3_2_0: UCD
unidata_version: str
@@ -17,7 +17,10 @@ def combining(__chr: str) -> int: ...
def decimal(__chr: str, __default: _T = ...) -> int | _T: ...
def decomposition(__chr: str) -> str: ...
def digit(__chr: str, __default: _T = ...) -> int | _T: ...
def east_asian_width(__chr: str) -> str: ...
_EastAsianWidth: TypeAlias = Literal["F", "H", "W", "Na", "A", "N"]
def east_asian_width(__chr: str) -> _EastAsianWidth: ...
if sys.version_info >= (3, 8):
def is_normalized(__form: str, __unistr: str) -> bool: ...
@@ -38,7 +41,7 @@ class UCD:
def decimal(self, __chr: str, __default: _T = ...) -> int | _T: ...
def decomposition(self, __chr: str) -> str: ...
def digit(self, __chr: str, __default: _T = ...) -> int | _T: ...
def east_asian_width(self, __chr: str) -> str: ...
def east_asian_width(self, __chr: str) -> _EastAsianWidth: ...
if sys.version_info >= (3, 8):
def is_normalized(self, __form: str, __unistr: str) -> bool: ...