Skip to content

Commit

Permalink
Put MappingProxyMethods in prelude and remake public
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Matlock committed Oct 21, 2024
1 parent 48dd3b6 commit fc8e146
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ pub use crate::types::float::PyFloatMethods;
pub use crate::types::frozenset::PyFrozenSetMethods;
pub use crate::types::list::PyListMethods;
pub use crate::types::mapping::PyMappingMethods;
pub use crate::types::mappingproxy::PyMappingProxyMethods;
pub use crate::types::module::PyModuleMethods;
pub use crate::types::sequence::PySequenceMethods;
pub use crate::types::set::PySetMethods;
Expand Down
2 changes: 1 addition & 1 deletion src/types/mappingproxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl PyMappingProxy {
/// syntax these methods are separated into a trait, because stable Rust does not yet support
/// `arbitrary_self_types`.
#[doc(alias = "PyMappingProxy")]
trait PyMappingProxyMethods<'py>: crate::sealed::Sealed {
pub trait PyMappingProxyMethods<'py>: crate::sealed::Sealed {
/// Returns a new mappingproxy that contains the same key-value pairs as self.
///
/// This is equivalent to the Python expression `self.copy()`.
Expand Down

0 comments on commit fc8e146

Please sign in to comment.