Skip to content

Commit 2a90426

Browse files
gh-131885: Update unicodedata function signatures to use / (#140270)
1 parent 327dbbe commit 2a90426

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Doc/library/unicodedata.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ following functions:
3131
this module.
3232

3333

34-
.. function:: lookup(name)
34+
.. function:: lookup(name, /)
3535

3636
Look up character by name. If a character with the given name is found, return
3737
the corresponding character. If not found, :exc:`KeyError` is raised.
@@ -94,7 +94,7 @@ following functions:
9494
0.5
9595

9696

97-
.. function:: category(chr)
97+
.. function:: category(chr, /)
9898

9999
Returns the general category assigned to the character *chr* as
100100
string. General category names consist of two letters.
@@ -106,7 +106,7 @@ following functions:
106106
'Lu'
107107

108108

109-
.. function:: bidirectional(chr)
109+
.. function:: bidirectional(chr, /)
110110

111111
Returns the bidirectional class assigned to the character *chr* as
112112
string. If no such value is defined, an empty string is returned.
@@ -118,7 +118,7 @@ following functions:
118118
'AN'
119119

120120

121-
.. function:: combining(chr)
121+
.. function:: combining(chr, /)
122122

123123
Returns the canonical combining class assigned to the character *chr*
124124
as integer. Returns ``0`` if no combining class is defined.
@@ -127,14 +127,14 @@ following functions:
127127
for more information.
128128

129129

130-
.. function:: east_asian_width(chr)
130+
.. function:: east_asian_width(chr, /)
131131

132132
Returns the east asian width assigned to the character *chr* as
133133
string. For a list of widths and or more information, see the
134134
`Unicode Standard Annex #11 <https://www.unicode.org/reports/tr11/>`_.
135135

136136

137-
.. function:: mirrored(chr)
137+
.. function:: mirrored(chr, /)
138138

139139
Returns the mirrored property assigned to the character *chr* as
140140
integer. Returns ``1`` if the character has been identified as a "mirrored"
@@ -174,7 +174,7 @@ following functions:
174174
.. versionadded:: next
175175

176176

177-
.. function:: decomposition(chr)
177+
.. function:: decomposition(chr, /)
178178

179179
Returns the character decomposition mapping assigned to the character
180180
*chr* as string. An empty string is returned in case no such mapping is
@@ -184,7 +184,7 @@ following functions:
184184
'0041 0303'
185185

186186

187-
.. function:: normalize(form, unistr)
187+
.. function:: normalize(form, unistr, /)
188188

189189
Return the normal form *form* for the Unicode string *unistr*. Valid values for
190190
*form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.
@@ -217,7 +217,7 @@ following functions:
217217
doesn't, they may not compare equal.
218218

219219

220-
.. function:: is_normalized(form, unistr)
220+
.. function:: is_normalized(form, unistr, /)
221221

222222
Return whether the Unicode string *unistr* is in the normal form *form*. Valid
223223
values for *form* are 'NFC', 'NFKC', 'NFD', and 'NFKD'.

0 commit comments

Comments
 (0)