exceptions: new_err: generic docstring

This commit is contained in:
Nicholas Sim 2021-06-30 18:55:51 +08:00
parent 71799c3099
commit 3ecb0f6e64
1 changed files with 1 additions and 0 deletions

View File

@ -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,