rustpython-ruff_python_parser 0.15.8

Unofficial fork for RustPython
Documentation
---
source: crates/ruff_python_parser/tests/fixtures.rs
input_file: crates/ruff_python_parser/resources/inline/err/raise_stmt_from_without_exc.py
---
## AST

```
Module(
    ModModule {
        node_index: NodeIndex(None),
        range: 0..31,
        body: [
            Raise(
                StmtRaise {
                    node_index: NodeIndex(None),
                    range: 0..14,
                    exc: None,
                    cause: Some(
                        Name(
                            ExprName {
                                node_index: NodeIndex(None),
                                range: 11..14,
                                id: Name("exc"),
                                ctx: Load,
                            },
                        ),
                    ),
                },
            ),
            Raise(
                StmtRaise {
                    node_index: NodeIndex(None),
                    range: 15..30,
                    exc: None,
                    cause: Some(
                        NoneLiteral(
                            ExprNoneLiteral {
                                node_index: NodeIndex(None),
                                range: 26..30,
                            },
                        ),
                    ),
                },
            ),
        ],
    },
)
```
## Errors

  |
1 | raise from exc
  |       ^^^^ Syntax Error: Exception missing in `raise` statement with cause
2 | raise from None
  |


  |
1 | raise from exc
2 | raise from None
  |       ^^^^ Syntax Error: Exception missing in `raise` statement with cause
  |