unicodedata: add UCD.is_normalized (#7915)

This commit is contained in:
Jelle Zijlstra
2022-05-21 12:59:44 -07:00
committed by GitHub
parent a412ddb437
commit 1220a99399
5 changed files with 3 additions and 4 deletions

View File

@@ -38,6 +38,9 @@ class UCD:
def decomposition(self, __chr: str) -> str: ...
def digit(self, __chr: str, __default: _T = ...) -> int | _T: ...
def east_asian_width(self, __chr: str) -> str: ...
if sys.version_info >= (3, 8):
def is_normalized(self, __form: str, __unistr: str) -> bool: ...
def lookup(self, __name: str | bytes) -> str: ...
def mirrored(self, __chr: str) -> int: ...
def name(self, __chr: str, __default: _T = ...) -> str | _T: ...

View File

@@ -91,7 +91,6 @@ multiprocessing.managers.SharedMemoryServer.release_segment
multiprocessing.managers.SharedMemoryServer.shutdown
multiprocessing.managers.SharedMemoryServer.track_segment
typing._SpecialForm.__call__
unicodedata.UCD.is_normalized
# ==========
# Related to positional-only arguments

View File

@@ -87,7 +87,6 @@ typing.NewType.__mro_entries__
typing.ParamSpec.__typing_subst__
typing.TypeVar.__typing_subst__
typing.TypeVarTuple.__typing_subst__
unicodedata.UCD.is_normalized
unittest.TestCase._addSkip
unittest.case.TestCase._addSkip
unittest.doModuleCleanups

View File

@@ -147,7 +147,6 @@ tkinter.filedialog.wantobjects
tkinter.simpledialog.wantobjects
tkinter.tix.wantobjects
typing._SpecialForm.__call__
unicodedata.UCD.is_normalized
# ==========
# Allowlist entries that cannot or should not be fixed

View File

@@ -132,7 +132,6 @@ stringprep.unicodedata # re-exported from unicodedata
types.GenericAlias.__mro_entries__
typing._SpecialForm.__call__
typing._SpecialForm.__mro_entries__
unicodedata.UCD.is_normalized
# SpooledTemporaryFile implements IO except these methods before Python 3.11
# See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918