mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
12 lines
188 B
Python
12 lines
188 B
Python
__all__ = ["A", "B", "C"]
|
|
|
|
# Errors
|
|
__all__.append("D")
|
|
__all__.extend(["E", "Foo"])
|
|
__all__.remove("A")
|
|
|
|
# OK
|
|
__all__ += ["D"]
|
|
foo = ["Hello"]
|
|
foo.append("World")
|
|
foo.bar.append("World")
|