Spellcheck & grammar (#10375)

## Summary

I used `codespell` and `gramma` to identify mispellings and grammar
errors throughout the codebase and fixed them. I tried not to make any
controversial changes, but feel free to revert as you see fit.
This commit is contained in:
Auguste Lalande 2024-03-12 22:34:23 -04:00 committed by GitHub
parent c56fb6e15a
commit 3ed707f245
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
67 changed files with 135 additions and 170 deletions

View file

@ -85,7 +85,7 @@ impl Notebook {
Self::from_reader(Cursor::new(source_code))
}
/// Read a Jupyter Notebook from a [`Read`] implementor.
/// Read a Jupyter Notebook from a [`Read`] implementer.
///
/// See also the black implementation
/// <https://github.com/psf/black/blob/69ca0a4c7a365c5f5eea519a90980bab72cab764/src/black/__init__.py#L1017-L1046>
@ -386,7 +386,7 @@ impl Notebook {
.map_or(true, |language| language.name == "python")
}
/// Write the notebook back to the given [`Write`] implementor.
/// Write the notebook back to the given [`Write`] implementer.
pub fn write(&self, writer: &mut dyn Write) -> Result<(), NotebookError> {
// https://github.com/psf/black/blob/69ca0a4c7a365c5f5eea519a90980bab72cab764/src/black/__init__.py#LL1041
let formatter = serde_json::ser::PrettyFormatter::with_indent(b" ");