diff --git a/stdlib/unicodedata.pyi b/stdlib/unicodedata.pyi index aec8867df..7337ab878 100644 --- a/stdlib/unicodedata.pyi +++ b/stdlib/unicodedata.pyi @@ -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: ... diff --git a/tests/stubtest_allowlists/py310.txt b/tests/stubtest_allowlists/py310.txt index e6bc74afc..e2463fee2 100644 --- a/tests/stubtest_allowlists/py310.txt +++ b/tests/stubtest_allowlists/py310.txt @@ -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 diff --git a/tests/stubtest_allowlists/py311.txt b/tests/stubtest_allowlists/py311.txt index a8e210521..9bb3ebc72 100644 --- a/tests/stubtest_allowlists/py311.txt +++ b/tests/stubtest_allowlists/py311.txt @@ -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 diff --git a/tests/stubtest_allowlists/py38.txt b/tests/stubtest_allowlists/py38.txt index 947cd504e..8f0c38ae1 100644 --- a/tests/stubtest_allowlists/py38.txt +++ b/tests/stubtest_allowlists/py38.txt @@ -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 diff --git a/tests/stubtest_allowlists/py39.txt b/tests/stubtest_allowlists/py39.txt index 6acb7a3eb..ade8dc291 100644 --- a/tests/stubtest_allowlists/py39.txt +++ b/tests/stubtest_allowlists/py39.txt @@ -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