ignore some python code in doc strings
This commit is contained in:
parent
4eb22a3c20
commit
438f4bf091
|
@ -41,7 +41,7 @@ pub trait ObjectProtocol {
|
|||
/// On Python 2, this is equivalent to the Python expression 'cmp(self, other)'.
|
||||
///
|
||||
/// On Python 3, this is equivalent to:
|
||||
/// ```
|
||||
/// ```python,ignore
|
||||
/// if self == other:
|
||||
/// return Equal
|
||||
/// elif a < b:
|
||||
|
|
|
@ -102,7 +102,7 @@ impl<'a, T: ?Sized> PyTypeInfo for &'a T where T: PyTypeInfo {
|
|||
/// Calling of `__new__` method of base class is developer's responsibility.
|
||||
///
|
||||
/// Example of custom class implementation with `__new__` method:
|
||||
/// ```rust
|
||||
/// ```rust,ignore
|
||||
/// #[py::class]
|
||||
/// struct MyClass {
|
||||
/// token: PyToken
|
||||
|
|
Loading…
Reference in New Issue