@@ -373,7 +373,7 @@ pub(crate) fn impl_define_exception(exc_def: PyExceptionDef) -> Result<TokenStre
373373 }
374374 }
375375
376- #[ pyimpl ( flags( BASETYPE , HAS_DICT ) ) ]
376+ #[ pyclass ( flags( BASETYPE , HAS_DICT ) ) ]
377377 impl #class_name {
378378 #[ pyslot]
379379 pub ( crate ) fn slot_new(
@@ -959,7 +959,7 @@ fn extract_impl_attrs(attr: AttributeArgs, item: &Ident) -> Result<ExtractedImpl
959959 let path = match meta {
960960 NestedMeta :: Meta ( Meta :: Path ( path) ) => path,
961961 meta => {
962- bail_span ! ( meta, "#[pyimpl (with(...))] arguments should be paths" )
962+ bail_span ! ( meta, "#[pyclass (with(...))] arguments should be paths" )
963963 }
964964 } ;
965965 let ( extend_class, extend_slots) = if path_eq ( & path, "PyRef" ) {
@@ -993,12 +993,12 @@ fn extract_impl_attrs(attr: AttributeArgs, item: &Ident) -> Result<ExtractedImpl
993993 } else {
994994 bail_span ! (
995995 path,
996- "#[pyimpl (flags(...))] arguments should be ident"
996+ "#[pyclass (flags(...))] arguments should be ident"
997997 )
998998 }
999999 }
10001000 meta => {
1001- bail_span ! ( meta, "#[pyimpl (flags(...))] arguments should be ident" )
1001+ bail_span ! ( meta, "#[pyclass (flags(...))] arguments should be ident" )
10021002 }
10031003 }
10041004 }
@@ -1098,7 +1098,7 @@ where
10981098 if ALL_ALLOWED_NAMES . contains ( & attr_name. as_str ( ) ) {
10991099 return Err ( syn:: Error :: new_spanned (
11001100 attr,
1101- format ! ( "#[pyimpl ] doesn't accept #[{}]" , wrong_name) ,
1101+ format ! ( "#[pyclass ] doesn't accept #[{}]" , wrong_name) ,
11021102 ) ) ;
11031103 } else {
11041104 continue ;
0 commit comments