Apply suggestions from code review
Co-Authored-By: Alexander Niederbühl <a.niederbuehl@gmail.com>
This commit is contained in:
parent
b7d5f9097b
commit
e026013321
|
@ -133,7 +133,7 @@ pub trait PyMethodsInventory: inventory::Collect {
|
|||
fn get_methods(&self) -> &'static [PyMethodDefType];
|
||||
}
|
||||
|
||||
/// The implementation of tis trait defines which methods a Python type has.
|
||||
/// The implementation of this trait defines which methods a Python type has.
|
||||
///
|
||||
/// For pyclass derived structs this is implemented by collecting all impl blocks through inventory
|
||||
pub trait PyMethodsProtocol {
|
||||
|
|
|
@ -15,7 +15,7 @@ use std::ptr::NonNull;
|
|||
|
||||
/// Types that are built into the Python interpreter.
|
||||
///
|
||||
/// PyO3 is designed in a way that that all references to those types are bound
|
||||
/// PyO3 is designed in a way that all references to those types are bound
|
||||
/// to the GIL, which is why you can get a token from all references of those
|
||||
/// types.
|
||||
pub unsafe trait PyNativeType: Sized {
|
||||
|
|
Loading…
Reference in New Issue