mirror of
https://github.com/RustPython/Parser.git
synced 2025-07-08 05:35:22 +00:00
first cspell dict
This commit is contained in:
parent
e8fef39861
commit
7885344bcf
1 changed files with 3 additions and 3 deletions
|
@ -43,7 +43,7 @@ pub fn validate_arguments(arguments: ast::Arguments) -> Result<ast::Arguments, L
|
|||
pub fn parse_params(
|
||||
params: (Vec<ParameterDef>, Vec<ParameterDef>),
|
||||
) -> Result<ParameterDefs, LexicalError> {
|
||||
let mut posonly = Vec::with_capacity(params.0.len());
|
||||
let mut pos_only = Vec::with_capacity(params.0.len());
|
||||
let mut names = Vec::with_capacity(params.1.len());
|
||||
let mut defaults = vec![];
|
||||
|
||||
|
@ -63,7 +63,7 @@ pub fn parse_params(
|
|||
|
||||
for (name, default) in params.0 {
|
||||
try_default(&name, default)?;
|
||||
posonly.push(name);
|
||||
pos_only.push(name);
|
||||
}
|
||||
|
||||
for (name, default) in params.1 {
|
||||
|
@ -71,7 +71,7 @@ pub fn parse_params(
|
|||
names.push(name);
|
||||
}
|
||||
|
||||
Ok((posonly, names, defaults))
|
||||
Ok((pos_only, names, defaults))
|
||||
}
|
||||
|
||||
type FunctionArgument = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue