Skip to content

Commit 6393068

Browse files
authored
fix some typos (#138977)
1 parent a651ec9 commit 6393068

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

InternalDocs/asyncio.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ the current task is found and returned. If no matching thread state is
205205
found, `None` is returned.
206206

207207
In free-threading, it avoids contention on a global dictionary as
208-
threads can access the current task of thier running loop without any
208+
threads can access the current task of their running loop without any
209209
locking.
210210

211211
---

Lib/test/test_enum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4887,7 +4887,7 @@ class Color(Enum):
48874887
def _generate_next_value_(name, start, count, last):
48884888
return name
48894889

4890-
def test_auto_order_wierd(self):
4890+
def test_auto_order_weird(self):
48914891
weird_auto = auto()
48924892
weird_auto.value = 'pathological case'
48934893
class Color(Enum):

Lib/test/test_json/test_enum.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class FloatNum(float, Enum):
2626
NEG_INF = float('-inf')
2727
NAN = float('nan')
2828

29-
class WierdNum(float, Enum):
29+
class WeirdNum(float, Enum):
3030
inf = INF
3131
neg_inf = NEG_INF
3232
nan = NAN
@@ -40,7 +40,7 @@ def test_floats(self):
4040
self.assertEqual(self.loads(self.dumps(enum)), enum)
4141

4242
def test_weird_floats(self):
43-
for enum, expected in zip(WierdNum, ('Infinity', '-Infinity', 'NaN')):
43+
for enum, expected in zip(WeirdNum, ('Infinity', '-Infinity', 'NaN')):
4444
self.assertEqual(self.dumps(enum), expected)
4545
if not isnan(enum):
4646
self.assertEqual(float(self.dumps(enum)), enum)
@@ -64,16 +64,16 @@ def test_list(self):
6464
str([E, PI, TAU]))
6565
self.assertEqual(self.loads(self.dumps(list(FloatNum))),
6666
list(FloatNum))
67-
self.assertEqual(self.dumps(list(WierdNum)),
67+
self.assertEqual(self.dumps(list(WeirdNum)),
6868
'[Infinity, -Infinity, NaN]')
69-
self.assertEqual(self.loads(self.dumps(list(WierdNum)))[:2],
70-
list(WierdNum)[:2])
71-
self.assertTrue(isnan(self.loads(self.dumps(list(WierdNum)))[2]))
69+
self.assertEqual(self.loads(self.dumps(list(WeirdNum)))[:2],
70+
list(WeirdNum)[:2])
71+
self.assertTrue(isnan(self.loads(self.dumps(list(WeirdNum)))[2]))
7272

7373
def test_dict_keys(self):
7474
s, b, h, r = BigNum
7575
e, p, t = FloatNum
76-
i, j, n = WierdNum
76+
i, j, n = WeirdNum
7777
d = {
7878
s:'tiny', b:'large', h:'larger', r:'largest',
7979
e:"Euler's number", p:'pi', t:'tau',
@@ -100,9 +100,9 @@ def test_dict_values(self):
100100
e=FloatNum.e,
101101
pi=FloatNum.pi,
102102
tau=FloatNum.tau,
103-
i=WierdNum.inf,
104-
j=WierdNum.neg_inf,
105-
n=WierdNum.nan,
103+
i=WeirdNum.inf,
104+
j=WeirdNum.neg_inf,
105+
n=WeirdNum.nan,
106106
)
107107
nd = self.loads(self.dumps(d))
108108
self.assertEqual(nd['tiny'], SMALL)

Modules/_zstd/compressor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ _zstd_ZstdCompressor_set_pledged_input_size_impl(ZstdCompressor *self,
716716
unsigned long long size)
717717
/*[clinic end generated code: output=3a09e55cc0e3b4f9 input=b4c87bcbd5ce6111]*/
718718
{
719-
// Error occured while converting argument, should be unreachable
719+
// Error occurred while converting argument, should be unreachable
720720
assert(size != ZSTD_CONTENTSIZE_ERROR);
721721

722722
/* Thread-safe code */

0 commit comments

Comments
 (0)