Skip to content

Commit 1220a99

Browse files
unicodedata: add UCD.is_normalized (#7915)
1 parent a412ddb commit 1220a99

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

stdlib/unicodedata.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ class UCD:
3838
def decomposition(self, __chr: str) -> str: ...
3939
def digit(self, __chr: str, __default: _T = ...) -> int | _T: ...
4040
def east_asian_width(self, __chr: str) -> str: ...
41+
if sys.version_info >= (3, 8):
42+
def is_normalized(self, __form: str, __unistr: str) -> bool: ...
43+
4144
def lookup(self, __name: str | bytes) -> str: ...
4245
def mirrored(self, __chr: str) -> int: ...
4346
def name(self, __chr: str, __default: _T = ...) -> str | _T: ...

tests/stubtest_allowlists/py310.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ multiprocessing.managers.SharedMemoryServer.release_segment
9191
multiprocessing.managers.SharedMemoryServer.shutdown
9292
multiprocessing.managers.SharedMemoryServer.track_segment
9393
typing._SpecialForm.__call__
94-
unicodedata.UCD.is_normalized
9594

9695
# ==========
9796
# Related to positional-only arguments

tests/stubtest_allowlists/py311.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ typing.NewType.__mro_entries__
8787
typing.ParamSpec.__typing_subst__
8888
typing.TypeVar.__typing_subst__
8989
typing.TypeVarTuple.__typing_subst__
90-
unicodedata.UCD.is_normalized
9190
unittest.TestCase._addSkip
9291
unittest.case.TestCase._addSkip
9392
unittest.doModuleCleanups

tests/stubtest_allowlists/py38.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,6 @@ tkinter.filedialog.wantobjects
147147
tkinter.simpledialog.wantobjects
148148
tkinter.tix.wantobjects
149149
typing._SpecialForm.__call__
150-
unicodedata.UCD.is_normalized
151150

152151
# ==========
153152
# Allowlist entries that cannot or should not be fixed

tests/stubtest_allowlists/py39.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ stringprep.unicodedata # re-exported from unicodedata
132132
types.GenericAlias.__mro_entries__
133133
typing._SpecialForm.__call__
134134
typing._SpecialForm.__mro_entries__
135-
unicodedata.UCD.is_normalized
136135

137136
# SpooledTemporaryFile implements IO except these methods before Python 3.11
138137
# See also https://github.com/python/typeshed/pull/2452#issuecomment-420657918

0 commit comments

Comments
 (0)