---
source: crates/ruff_linter/src/rules/pylint/mod.rs
assertion_line: 256
---
PLC2701 Private name import `_a`
 --> __main__.py:2:6
  |
1 | # Errors.
2 | from _a import b
  |      ^^
3 | from c._d import e
4 | from _f.g import h
  |

PLC2701 Private name import `_d` from external module `c`
 --> __main__.py:3:8
  |
1 | # Errors.
2 | from _a import b
3 | from c._d import e
  |        ^^
4 | from _f.g import h
5 | from i import _j
  |

PLC2701 Private name import `_f`
 --> __main__.py:4:6
  |
2 | from _a import b
3 | from c._d import e
4 | from _f.g import h
  |      ^^
5 | from i import _j
6 | from k import _l as m
  |

PLC2701 Private name import `_j` from external module `i`
 --> __main__.py:5:15
  |
3 | from c._d import e
4 | from _f.g import h
5 | from i import _j
  |               ^^
6 | from k import _l as m
7 | import _aaa
  |

PLC2701 Private name import `_l` from external module `k`
 --> __main__.py:6:15
  |
4 | from _f.g import h
5 | from i import _j
6 | from k import _l as m
  |               ^^
7 | import _aaa
8 | import bbb.ccc._ddd as eee  # Panicked in https://github.com/astral-sh/ruff/pull/5920
  |

PLC2701 Private name import `_aaa`
 --> __main__.py:7:8
  |
5 | from i import _j
6 | from k import _l as m
7 | import _aaa
  |        ^^^^
8 | import bbb.ccc._ddd as eee  # Panicked in https://github.com/astral-sh/ruff/pull/5920
  |

PLC2701 Private name import `_ddd` from external module `bbb.ccc`
  --> __main__.py:8:24
   |
 6 | from k import _l as m
 7 | import _aaa
 8 | import bbb.ccc._ddd as eee  # Panicked in https://github.com/astral-sh/ruff/pull/5920
   |                        ^^^
 9 |
10 | # Non-errors.
   |

PLC2701 Private name import `_bar` from external module `foo`
  --> __main__.py:52:14
   |
50 |     return arg
51 |
52 | from foo.    _bar import baz
   |              ^^^^
   |
