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