---
source: crates/ruff_linter/src/rules/flake8_pyi/mod.rs
---
PYI056 Calling `.append()` on `__all__` may not be supported by all type checkers (use `+=` instead)
 --> PYI056.py:4:1
  |
3 | # Errors
4 | __all__.append("D")
  | ^^^^^^^^^^^^^^
5 | __all__.extend(["E", "Foo"])
6 | __all__.remove("A")
  |

PYI056 Calling `.extend()` on `__all__` may not be supported by all type checkers (use `+=` instead)
 --> PYI056.py:5:1
  |
3 | # Errors
4 | __all__.append("D")
5 | __all__.extend(["E", "Foo"])
  | ^^^^^^^^^^^^^^
6 | __all__.remove("A")
  |

PYI056 Calling `.remove()` on `__all__` may not be supported by all type checkers (use `+=` instead)
 --> PYI056.py:6:1
  |
4 | __all__.append("D")
5 | __all__.extend(["E", "Foo"])
6 | __all__.remove("A")
  | ^^^^^^^^^^^^^^
7 |
8 | # OK
  |
