Macro impl_from_py_object_for_op_enum

Source
macro_rules! impl_from_py_object_for_op_enum {
    ($enum_name:ident, $error_msg:literal) => { ... };
}
Expand description

Macros for reducing code duplication in the python-ast library. Macro for generating FromPyObject implementations for operator enums. This reduces the boilerplate for extracting Python operator objects.