[pylint] Fix PLC0415 example (#18970)

Fixed documentation error
This commit is contained in:
Yair Peretz
2025-06-27 01:33:33 +03:00
committed by GitHub
parent 6f7b1c9bb3
commit 18efe2ab46

View File

@@ -32,7 +32,7 @@ use crate::{
/// def print_python_version():
/// import platform
///
/// print(python.python_version())
/// print(platform.python_version())
/// ```
///
/// Use instead:
@@ -41,7 +41,7 @@ use crate::{
///
///
/// def print_python_version():
/// print(python.python_version())
/// print(platform.python_version())
/// ```
///
/// [PEP 8]: https://peps.python.org/pep-0008/#imports