Skip to content

Commit

Permalink
Make ParamSpec::new_named_only public
Browse files Browse the repository at this point in the history
Reviewed By: ezgicicek

Differential Revision: D63877885

fbshipit-source-id: da19ad77ee8afa1431434b92e1508778b912d51f
  • Loading branch information
stepancheg authored and facebook-github-bot committed Oct 10, 2024
1 parent 1b47f8e commit 5e072b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions starlark/src/typing/callable_param.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ impl ParamSpec {
}

/// `*, x, y`.
#[cfg(test)]
pub(crate) fn new_named_only(
pub fn new_named_only(
named_only: impl IntoIterator<Item = (ArcStr, ParamIsRequired, Ty)>,
) -> crate::Result<ParamSpec> {
Self::new_parts([], [], None, named_only, None)
Expand Down

0 comments on commit 5e072b4

Please sign in to comment.