Merge pull request #3441 from davidhewitt/netlify-doc-links

remove some redundant explicit doc links
This commit is contained in:
David Hewitt 2023-09-08 15:20:23 +00:00 committed by GitHub
commit 1ea8f0c959
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View File

@ -1129,7 +1129,7 @@ impl Sysconfigdata {
/// The sysconfigdata is simply a dictionary containing all the build time variables used for the
/// python executable and library. This function necessitates a python interpreter on the host
/// machine to work. Here it is read into a `Sysconfigdata` (hash map), which can be turned into an
/// [`InterpreterConfig`](InterpreterConfig) using
/// [`InterpreterConfig`] using
/// [`from_sysconfigdata`](InterpreterConfig::from_sysconfigdata).
pub fn parse_sysconfigdata(sysconfigdata_path: impl AsRef<Path>) -> Result<Sysconfigdata> {
let sysconfigdata_path = sysconfigdata_path.as_ref();

View File

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

View File

@ -86,9 +86,9 @@ impl PyModule {
/// Returns `PyErr` if:
/// - `code` is not syntactically correct Python.
/// - Any Python exceptions are raised while initializing the module.
/// - Any of the arguments cannot be converted to [`CString`](std::ffi::CString)s.
/// - Any of the arguments cannot be converted to [`CString`]s.
///
/// # Example: bundle in a file at compile time with [`include_str!`][1]:
/// # Example: bundle in a file at compile time with [`include_str!`][std::include_str]:
///
/// ```rust
/// use pyo3::prelude::*;
@ -105,7 +105,7 @@ impl PyModule {
/// # }
/// ```
///
/// # Example: Load a file at runtime with [`std::fs::read_to_string`][2].
/// # Example: Load a file at runtime with [`std::fs::read_to_string`].
///
/// ```rust
/// use pyo3::prelude::*;
@ -123,9 +123,6 @@ impl PyModule {
/// Ok(())
/// # }
/// ```
///
/// [1]: std::include_str
/// [2]: std::fs::read_to_string
pub fn from_code<'p>(
py: Python<'p>,
code: &str,