mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-03 15:15:33 +00:00
Upgrade Rust toolchain to 1.83 (#14677)
This commit is contained in:
parent
a6402fb51e
commit
b63c2e126b
63 changed files with 127 additions and 127 deletions
|
@ -76,11 +76,9 @@ pub(crate) fn get_section_contexts<'a>(
|
|||
) -> SectionContexts<'a> {
|
||||
match convention {
|
||||
Some(Convention::Google) => {
|
||||
return SectionContexts::from_docstring(docstring, SectionStyle::Google);
|
||||
}
|
||||
Some(Convention::Numpy) => {
|
||||
return SectionContexts::from_docstring(docstring, SectionStyle::Numpy);
|
||||
SectionContexts::from_docstring(docstring, SectionStyle::Google)
|
||||
}
|
||||
Some(Convention::Numpy) => SectionContexts::from_docstring(docstring, SectionStyle::Numpy),
|
||||
Some(Convention::Pep257) | None => {
|
||||
// There are some overlapping section names, between the Google and NumPy conventions
|
||||
// (e.g., "Returns", "Raises"). Break ties by checking for the presence of some of the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue