---
source: crates/ruff_python_parser/tests/fixtures.rs
input_file: crates/ruff_python_parser/resources/inline/err/from_import_missing_rpar.py
---
## AST

```
Module(
    ModModule {
        range: 0..53,
        body: [
            ImportFrom(
                StmtImportFrom {
                    range: 0..19,
                    module: Some(
                        Identifier {
                            id: "x",
                            range: 5..6,
                        },
                    ),
                    names: [
                        Alias {
                            range: 15..16,
                            name: Identifier {
                                id: "a",
                                range: 15..16,
                            },
                            asname: None,
                        },
                        Alias {
                            range: 18..19,
                            name: Identifier {
                                id: "b",
                                range: 18..19,
                            },
                            asname: None,
                        },
                    ],
                    level: Some(
                        0,
                    ),
                },
            ),
            Expr(
                StmtExpr {
                    range: 20..25,
                    value: BinOp(
                        ExprBinOp {
                            range: 20..25,
                            left: NumberLiteral(
                                ExprNumberLiteral {
                                    range: 20..21,
                                    value: Int(
                                        1,
                                    ),
                                },
                            ),
                            op: Add,
                            right: NumberLiteral(
                                ExprNumberLiteral {
                                    range: 24..25,
                                    value: Int(
                                        1,
                                    ),
                                },
                            ),
                        },
                    ),
                },
            ),
            ImportFrom(
                StmtImportFrom {
                    range: 26..46,
                    module: Some(
                        Identifier {
                            id: "x",
                            range: 31..32,
                        },
                    ),
                    names: [
                        Alias {
                            range: 41..42,
                            name: Identifier {
                                id: "a",
                                range: 41..42,
                            },
                            asname: None,
                        },
                        Alias {
                            range: 44..45,
                            name: Identifier {
                                id: "b",
                                range: 44..45,
                            },
                            asname: None,
                        },
                    ],
                    level: Some(
                        0,
                    ),
                },
            ),
            Expr(
                StmtExpr {
                    range: 47..52,
                    value: BinOp(
                        ExprBinOp {
                            range: 47..52,
                            left: NumberLiteral(
                                ExprNumberLiteral {
                                    range: 47..48,
                                    value: Int(
                                        2,
                                    ),
                                },
                            ),
                            op: Add,
                            right: NumberLiteral(
                                ExprNumberLiteral {
                                    range: 51..52,
                                    value: Int(
                                        2,
                                    ),
                                },
                            ),
                        },
                    ),
                },
            ),
        ],
    },
)
```
## Errors

  |
1 | from x import (a, b
2 | 1 + 1
  | ^ Syntax Error: Expected ',', found int
3 | from x import (a, b,
4 | 2 + 2
  |


  |
1 | from x import (a, b
2 | 1 + 1
3 | from x import (a, b,
  | ^^^^ Syntax Error: Simple statements must be separated by newlines or semicolons
4 | 2 + 2
  |


  |
2 | 1 + 1
3 | from x import (a, b,
4 | 2 + 2
  | ^ Syntax Error: Expected an import name or a ')'
  |


  |
3 | from x import (a, b,
4 | 2 + 2
  |
