Skip to content

Commit

Permalink
remove blanket implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheukting committed Oct 12, 2024
1 parent a3a247c commit e52671d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sealed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use crate::{ffi, Bound, PyAny, PyResult};
use crate::pyclass_init::PyClassInitializer;

use crate::impl_::{
pyclass_init::{PyNativeTypeInitializer, PyObjectInit},
pyclass_init::PyNativeTypeInitializer,
pymethods::PyMethodDef,
pymodule::{AddClassToModule, AddTypeToModule, ModuleDef},
};
Expand Down Expand Up @@ -50,6 +50,5 @@ impl<T> Sealed for AddClassToModule<T> {}
impl Sealed for PyMethodDef {}
impl Sealed for ModuleDef {}

impl<T: PyObjectInit<T>> Sealed for T {}
impl<T: crate::type_object::PyTypeInfo> Sealed for PyNativeTypeInitializer<T> {}
impl<T: crate::pyclass::PyClass> Sealed for PyClassInitializer<T> {}

0 comments on commit e52671d

Please sign in to comment.