Skip to content

Commit d248913

Browse files
authored
Fix typos across the codebase (#5573)
Thanks to the typos[1] tool! Previously _PyCoMontoringData was ignored as part of #5064[2], which is obviously the wrong name. This PR changes it for the real _PyCoMonitoringData name, but since it should be private that shouldn’t affect any real user of the ffi crate. [1] https://github.com/crate-ci/typos [2] #5064
1 parent 448ae2a commit d248913

File tree

15 files changed

+18
-18
lines changed

15 files changed

+18
-18
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2180,7 +2180,7 @@ default = ["extension-module"]
21802180

21812181
### Fixed
21822182

2183-
- Fix undeterministic segfaults when creating many objects by kngwyu in [#281](https://github.com/PyO3/pyo3/pull/281)
2183+
- Fix indeterministic segfaults when creating many objects by kngwyu in [#281](https://github.com/PyO3/pyo3/pull/281)
21842184

21852185
## [0.5.1] - 2018-11-24
21862186

Contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To work and develop PyO3, you need Python & Rust installed on your system.
2626

2727
### Testing, linting, etc. with nox
2828

29-
[`Nox`][nox] is used to automate many of our CI tasks and can be used locally to handle verfication tasks as you code. We recommend running these actions via nox to make use of our prefered configuration options. You can install nox into your global python with pip: `pip install nox` or (recommended) with [`pipx`][pipx] `pip install pipx`, `pipx install nox`
29+
[`Nox`][nox] is used to automate many of our CI tasks and can be used locally to handle verification tasks as you code. We recommend running these actions via nox to make use of our preferred configuration options. You can install nox into your global python with pip: `pip install nox` or (recommended) with [`pipx`][pipx] `pip install pipx`, `pipx install nox`
3030

3131
The main nox commands we have implemented are:
3232

guide/src/migration.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Most implementations can just add an elided lifetime to migrate.
3636

3737
Additionally `FromPyObject` gained an associated type `Error`.
3838
This is the error type that can be used in case of a conversion error.
39-
During migration using `PyErr` is a good default, later a custom error type can be introduced to prevent unneccessary creation of Python exception objects and improved type safety.
39+
During migration using `PyErr` is a good default, later a custom error type can be introduced to prevent unnecessary creation of Python exception objects and improved type safety.
4040

4141
Before:
4242

@@ -101,7 +101,7 @@ where
101101
}
102102
```
103103

104-
Container types that need to create temporary Python references during extraction, for example extracing from a `PyList`, requires a stronger bound.
104+
Container types that need to create temporary Python references during extraction, for example extracting from a `PyList`, requires a stronger bound.
105105
For these the `FromPyObjectOwned` trait was introduced.
106106
It is automatically implemented for any type that implements `FromPyObject` and does not borrow from the input.
107107
It is intended to be used as a trait bound in these situations.
@@ -365,7 +365,7 @@ It may be preferable to instead use `std::sync::OnceLock` in combination with th
365365

366366
Future PyO3 versions will likely add more traits and data structures to make working with free-threaded Python easier.
367367

368-
Some features are unaccessible on the free-threaded build:
368+
Some features are inaccessible on the free-threaded build:
369369

370370
- The `GILProtected` type, which relied on the GIL to expose synchronized access to inner contents
371371
- `PyList::get_item_unchecked`, which cannot soundly be used due to races between time-of-check and time-of-use

guide/src/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mod my_extension {
1919
#[pymodule_export]
2020
use super::double; // The double function is made available from Python, works also with classes
2121
22-
#[pyfunction] // Inline definition of a pyfunction, also made availlable to Python
22+
#[pyfunction] // Inline definition of a pyfunction, also made available to Python
2323
fn triple(x: usize) -> usize {
2424
x * 3
2525
}

pyo3-ffi/src/cpython/code.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ use std::ptr::addr_of_mut;
2828

2929
// skipped private _PyCoCached
3030
// skipped private _PyCoLineInstrumentationData
31-
// skipped private _PyCoMontoringData
31+
// skipped private _PyCoMonitoringData
3232

3333
// skipped private _PyExecutorArray
3434

pyo3-ffi/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@
320320
#![doc = concat!("[manual_builds]: https://pyo3.rs/v", env!("CARGO_PKG_VERSION"), "/building-and-distribution.html#manual-builds \"Manual builds - Building and Distribution - PyO3 user guide\"")]
321321
//! [setuptools-rust]: https://github.com/PyO3/setuptools-rust "Setuptools plugin for Rust extensions"
322322
//! [PEP 384]: https://www.python.org/dev/peps/pep-0384 "PEP 384 -- Defining a Stable ABI"
323-
#![doc = concat!("[Features chapter of the guide]: https://pyo3.rs/v", env!("CARGO_PKG_VERSION"), "/features.html#features-reference \"Features eference - PyO3 user guide\"")]
323+
#![doc = concat!("[Features chapter of the guide]: https://pyo3.rs/v", env!("CARGO_PKG_VERSION"), "/features.html#features-reference \"Features reference - PyO3 user guide\"")]
324324
#![allow(
325325
missing_docs,
326326
non_camel_case_types,

src/call.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub(crate) mod private {
2323
///
2424
/// This trait is currently implemented for Rust tuple (up to a size of 12),
2525
/// [`Bound<'py, PyTuple>`] and [`Py<PyTuple>`]. Custom types that are
26-
/// convertable to `PyTuple` via `IntoPyObject` need to do so before passing it
26+
/// convertible to `PyTuple` via `IntoPyObject` need to do so before passing it
2727
/// to `call`.
2828
///
2929
/// This trait is not intended to used by downstream crates directly. As such it
@@ -45,7 +45,7 @@ pub(crate) mod private {
4545
#[diagnostic::on_unimplemented(
4646
message = "`{Self}` cannot used as a Python `call` argument",
4747
note = "`PyCallArgs` is implemented for Rust tuples, `Bound<'py, PyTuple>` and `Py<PyTuple>`",
48-
note = "if your type is convertable to `PyTuple` via `IntoPyObject`, call `<arg>.into_pyobject(py)` manually",
48+
note = "if your type is convertible to `PyTuple` via `IntoPyObject`, call `<arg>.into_pyobject(py)` manually",
4949
note = "if you meant to pass the type as a single argument, wrap it in a 1-tuple, `(<arg>,)`"
5050
)]
5151
pub trait PyCallArgs<'py>: Sized + private::Sealed {

src/conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ impl<'py, T> IntoPyObjectExt<'py> for T where T: IntoPyObject<'py> {}
334334
/// ```
335335
/// This is basically what the derive macro above expands to.
336336
///
337-
/// ## Manual implementation for types with lifetime paramaters
337+
/// ## Manual implementation for types with lifetime parameters
338338
/// For types that contain lifetimes, these lifetimes need to be bound to the corresponding
339339
/// [`FromPyObject`] lifetime. This is roughly how the extraction of a typed [`Bound`] is
340340
/// implemented within PyO3.

src/impl_/extract_argument.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ impl FunctionDescription {
531531
if let Some(i) = self.find_keyword_parameter_in_positional(kwarg_name) {
532532
if i < self.positional_only_parameters {
533533
// If accepting **kwargs, then it's allowed for the name of the
534-
// kwarg to conflict with a postional-only argument - the value
534+
// kwarg to conflict with a positional-only argument - the value
535535
// will go into **kwargs anyway.
536536
if K::handle_varkeyword(varkeywords, kwarg_name_py, value, self).is_err() {
537537
positional_only_keyword_arguments.push(kwarg_name_owned);

src/instance.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -925,7 +925,7 @@ impl<'py, T> BoundObject<'py, T> for Bound<'py, T> {
925925
///
926926
/// Some Python C APIs also return "borrowed" pointers, which need to be increfd by the caller to
927927
/// keep them alive. This can also be modelled using [`Borrowed`]. However with free-threading these
928-
/// APIs are gradually replaced, because in absense of the GIL it is very hard to guarantee that the
928+
/// APIs are gradually replaced, because in absence of the GIL it is very hard to guarantee that the
929929
/// referred to object is not deallocated between receiving the pointer and incrementing the
930930
/// reference count. When possible APIs which return a "strong" reference (modelled by [`Bound`])
931931
/// should be using instead and otherwise great care needs to be taken to ensure safety.

0 commit comments

Comments
 (0)