exceptions: new_err: generic docstring
This commit is contained in:
parent
71799c3099
commit
3ecb0f6e64
|
@ -18,6 +18,7 @@ macro_rules! impl_exception_boilerplate {
|
|||
}
|
||||
|
||||
impl $name {
|
||||
/// Create a new [PyErr](crate::PyErr) of this type.
|
||||
pub fn new_err<A>(args: A) -> $crate::PyErr
|
||||
where
|
||||
A: $crate::PyErrArguments + Send + Sync + 'static,
|
||||
|
|
Loading…
Reference in New Issue