(func)
| 211 | |
| 212 | |
| 213 | def _get_options_class(func): |
| 214 | class_name = func._doc.options_class |
| 215 | if not class_name: |
| 216 | return None |
| 217 | try: |
| 218 | return globals()[class_name] |
| 219 | except KeyError: |
| 220 | warnings.warn(f"Python binding for {class_name} not exposed", |
| 221 | RuntimeWarning) |
| 222 | return None |
| 223 | |
| 224 | |
| 225 | def _handle_options(name, options_class, options, args, kwargs): |