Skip to content

Commit 08a1630

Browse files
birkenfelddavidhewitt
authored andcommitted
type_object: fix new clippy complaint about length of doc comment (#4527)
* type_object: fix new clippy complaint about length of doc comment * all: replace minor version specific links to CPython docs
1 parent 6c54632 commit 08a1630

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

guide/src/python-from-rust/calling-existing-code.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ fn main() -> PyResult<()> {
2727
## Want to run just an expression? Then use `eval_bound`.
2828

2929
[`Python::eval_bound`]({{#PYO3_DOCS_URL}}/pyo3/marker/struct.Python.html#method.eval_bound) is
30-
a method to execute a [Python expression](https://docs.python.org/3.7/reference/expressions.html)
30+
a method to execute a [Python expression](https://docs.python.org/3/reference/expressions.html)
3131
and return the evaluated value as a `Bound<'py, PyAny>` object.
3232

3333
```rust
@@ -50,7 +50,7 @@ Python::with_gil(|py| {
5050
## Want to run statements? Then use `run_bound`.
5151

5252
[`Python::run_bound`] is a method to execute one or more
53-
[Python statements](https://docs.python.org/3.7/reference/simple_stmts.html).
53+
[Python statements](https://docs.python.org/3/reference/simple_stmts.html).
5454
This method returns nothing (like any Python statement), but you can get
5555
access to manipulated objects via the `locals` dict.
5656

src/type_object.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ use crate::{ffi, Bound, Python};
1919
pub unsafe trait PyLayout<T> {}
2020

2121
/// `T: PySizedLayout<U>` represents that `T` is not a instance of
22-
/// [`PyVarObject`](https://docs.python.org/3.8/c-api/structures.html?highlight=pyvarobject#c.PyVarObject).
22+
/// [`PyVarObject`](https://docs.python.org/3/c-api/structures.html#c.PyVarObject).
23+
///
2324
/// In addition, that `T` is a concrete representation of `U`.
2425
pub trait PySizedLayout<T>: PyLayout<T> + Sized {}
2526

0 commit comments

Comments
 (0)