Fix links to ToPyObject in types docs

This commit is contained in:
smheidrich 2022-09-24 18:59:21 +02:00
parent 86ce4d1a13
commit 9572220f6c
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ use std::os::raw::c_double;
/// Represents a Python `float` object.
///
/// You can usually avoid directly working with this type
/// by using [`ToPyObject`](trait.ToPyObject.html)
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
/// and [extract](struct.PyAny.html#method.extract)
/// with `f32`/`f64`.
#[repr(transparent)]

View File

@ -46,7 +46,7 @@ macro_rules! int_fits_larger_int {
/// Represents a Python `int` object.
///
/// You can usually avoid directly working with this type
/// by using [`ToPyObject`](trait.ToPyObject.html)
/// by using [`ToPyObject`](crate::conversion::ToPyObject)
/// and [extract](struct.PyAny.html#method.extract)
/// with the primitive Rust integer types.
#[repr(transparent)]