8000 fix cspell warnings · RustPython/RustPython@7ac61f3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7ac61f3

Browse files
committed
fix cspell warnings
1 parent 2c94b80 commit 7ac61f3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+450
-277
lines changed

.cspell.dict/cpython.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,19 @@ cellarg
1010
cellvar
1111
cellvars
1212
cmpop
13+
weakreflist
14+
XXPRIME
1315
dictoffset
1416
elts
17+
xstat
1518
excepthandler
19+
fileutils
1620
finalbody
1721
freevar
1822
freevars
1923
fromlist
2024
heaptype
25+
HIGHRES
2126
IMMUTABLETYPE
2227
kwonlyarg
2328
kwonlyargs

.cspell.dict/python-more.txt

Lines changed: 104 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,152 @@
1+
abiflags
12
abstractmethods
3+
aenter
4+
aexit
25
aiter
36
anext
7+
appendleft
8+
argcount
49
arrayiterator
510
arraytype
611
asend
12+
asyncgen
713
athrow
14+
backslashreplace
815
basicsize
16+
bdfl
17+
bigcharset
18+
breakpointhook
919
cformat
20+
chunksize
1021
classcell
22+
closefd
1123
closesocket
1224
codepoint
1325
codepoints
26+
codesize
27+
contextvar
1428
cpython
29+
cratio
30+
dealloc
31+
debugbuild
1532
decompressor
1633
defaultaction
1734
descr
1835
dictcomp
1936
dictitems
2037
dictkeys
2138
dictview
39+
digestmod
40+
dllhandle
2241
docstring
2342
docstrings
2443
dunder
44+
endianness
45+
endpos
2546
eventmask
47+
excepthook
48+
exceptiongroup
49+
exitfuncs
50+
extendleft
51+
fastlocals
2652
fdel
53+
fedcba
2754
fget
2855
fileencoding
2956
fillchar
57+
fillvalue
3058
finallyhandler
59+
firstiter
60+
firstlineno
61+
fnctl
3162
frombytes
3263
fromhex
3364
fromunicode
3465
fset
3566
fspath
3667
fstring
3768
fstrings
69+
ftruncate
3870
genexpr
3971
getattro
72+
getcodesize
73+
getdefaultencoding
74+
getfilesystemencodeerrors
75+
getfilesystemencoding
4076
getformat
77+
getframe
4178
getnewargs
79+
getpip
80+
getrandom
81+
getrecursionlimit
82+
getrefcount
4283
getweakrefcount
4384
getweakrefs
85+
getwindowsversion
86+
gmtoff
87+
groupdict
88+
groupindex
89+
hamt
4490
hostnames
91+
idfunc
4592
idiv
4693
impls
94+
indexgroup
4795
infj
4896
instancecheck
4997
instanceof
98+
irepeat
5099
isabstractmethod
100+
isbytes
101+
iscased
102+
istext
51103
itemiterator
52104
itemsize
53105
iternext
106+
keepends
107+
keyfunc
54108
keyiterator
55109
kwarg
56110
kwargs
111+
kwdefaults
112+
kwonlyargcount
113+
lastgroup
57114
linearization
58115
linearize
59116
listcomp
117+
lvalue
60118
mappingproxy
119+
maskpri
120+
maxdigits
121+
MAXGROUPS
122+
MAXREPEAT
61123
maxsplit
124+
maxunicode
62125
memoryview
63126
memoryviewiterator
64127
metaclass
65128
metaclasses
66129
metatype
130+
mformat
67131
mro
68132
mros
133+
multiarch
134+
namereplace
69135
nanj
136+
nbytes
137+
ncallbacks
70138
ndigits
71139
ndim
140+
nlocals
72141
nonbytes
73142
origname
74143
posixsubprocess
144+
posonly
145+
posonlyargcount
146+
profilefunc
147+
pycodecs
148+
pycs
75149
pyexpat
76-
pytraverse
77150
PYTHONDEBUG
78151
PYTHONHOME
79152
PYTHONINSPECT
@@ -82,11 +155,19 @@ PYTHONPATH
82155
PYTHONPATH
83156
PYTHONVERBOSE
84157
PYTHONWARNINGS
158+
pytraverse
85159
qualname
160+
quotetabs
86161
radd
87162
rdiv
88163
rdivmod
164+
readall
165+
readbuffer
89166
reconstructor
167+
releaselevel
168+
reverseitemiterator
169+
reverseiterator
170+
reversekeyiterator
90171
reversevalueiterator
91172
rfloordiv
92173
rlshift
@@ -95,22 +176,42 @@ rpow
95176
rrshift
96177
rsub
97178
rtruediv
179+
rvalue
98180
scproxy
99181
setattro
100182
setcomp
101183
showwarnmsg
102-
warnmsg
184+
signum
185+
slotnames
103186
stacklevel
187+
stacksize
188+
startpos
104189
subclasscheck
105190
subclasshook
191+
suboffset
192+
sumprod
193+
surrogateescape
194+
surrogatepass
195+
sysconfigdata
196+
sysvars
197+
titlecased
198+
unimportable
106199
unionable
107200
unraisablehook
201+
unsliceable
202+
urandom
108203
valueiterator
109204
vararg
110205
varargs
111206
varnames
112207
warningregistry
208+
warnmsg
209+
warnoptions
113210
warnopts
114211
weakproxy
115212
winver
116-
xopts
213+
withdata
214+
xmlcharrefreplace
215+
xoptions
216+
xopts
217+
yieldfrom

.cspell.dict/rust-more.txt

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,45 +3,68 @@ bidi
33
biguint
44
bindgen
55
bitflags
6+
bitor
67
bstr
78
byteorder
9+
byteset
10+
caseless
811
chrono
912
consts
13+
cranelift
1014
cstring
15+
datelike
16+
deserializer
1117
flate2
1218
fract
19+
getres
1320
hasher
21+
hexf
22+
hexversion
1423
idents
24+
illumos
1525
indexmap
1626
insta
1727
keccak
1828
lalrpop
29+
lexopt
1930
libc
31+
libloading
2032
libz
2133
longlong
2234
Manually
2335
maplit
2436
memmap
37+
memmem
2538
metas
2639
modpow
40+
msvc
41+
muldiv
2742
nanos
2843
objclass
2944
peekable
3045
powc
3146
powf
3247
prepended
3348
punct
49+
puruspe
3450
replacen
3551
rsplitn
3652
rustc
3753
rustfmt
54+
rustyline
3855
seekfrom
56+
siphash
3957
splitn
4058
subsec
59+
thiserror
60+
timelike
4161
timsort
4262
trai
4363
ulonglong
4464
unic
4565
unistd
66+
unsync
67+
wasmbind
68+
widestring
4669
winapi
47-
winsock
70+
winsock

.cspell.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,24 @@
4747
// words - list of words to be always considered correct
4848
"words": [
4949
// RustPython
50+
"aiterable",
51+
"alnum",
5052
"baseclass",
53+
"boxvec",
5154
"Bytecode",
5255
"cfgs",
5356
"codegen",
57+
"coro",
5458
"dedentations",
5559
"dedents",
5660
"deduped",
5761
"downcasted",
5862
"dumpable",
63+
"emscripten",
64+
"excs",
65+
"finalizer",
5966
"GetSet",
67+
"groupref",
6068
"internable",
6169
"makeunicodedata",
6270
"miri",
@@ -100,6 +108,15 @@
100108
"unraisable",
101109
"wasi",
102110
"zelf",
111+
// unix
112+
"CLOEXEC",
113+
"codeset",
114+
"endgrent",
115+
"getrusage",
116+
"nanosleep",
117+
"WRLCK",
118+
// win32
119+
"birthtime",
103120
],
104121
// flagWords - list of words to be always considered incorrect
105122
"flagWords": [

common/src/boxvec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// cspell:ignore
12
//! An unresizable vector backed by a `Box<[T]>`
23
34
#![allow(clippy::needless_lifetimes)]

common/src/hash.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ impl HashSecret {
5353
fix_sentinel(mod_int(self.hash_one(data) as _))
5454
}
5555

56-
pub fn hash_iter<'a, T: 'a, I, F, E>(&self, iter: I, hashf: F) -> Result<PyHash, E>
56+
pub fn hash_iter<'a, T: 'a, I, F, E>(&self, iter: I, hash_func: F) -> Result<PyHash, E>
5757
where
5858
I: IntoIterator<Item = &'a T>,
5959
F: Fn(&'a T) -> Result<PyHash, E>,
6060
{
6161
let mut hasher = self.build_hasher();
6262
for element in iter {
63-
let item_hash = hashf(element)?;
63+
let item_hash = hash_func(element)?;
6464
item_hash.hash(&mut hasher);
6565
}
6666
Ok(fix_sentinel(mod_int(hasher.finish() as PyHash)))

common/src/rc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::rc::Rc;
33
#[cfg(feature = "threading")]
44
use std::sync::Arc;
55

6-
// type aliases instead of newtypes because you can't do `fn method(self: PyRc<Self>)` with a
6+
// type aliases instead of new-types because you can't do `fn method(self: PyRc<Self>)` with a
77
// newtype; requires the arbitrary_self_types unstable feature
88

99
#[cfg(feature = "threading")]

0 commit comments

Comments
 (0)
0