Skip to content

Commit cedea5b

Browse files
FIX Remove duplicate VBLoRAConfig entry from peft.__all__ (#3279)
`peft.__all__` listed `"VBLoRAConfig"` twice. Duplicate entries in `__all__` silently confuse documentation tooling, IDE auto-import, and linters that rely on `__all__` to determine the public API surface. It's the only duplicate among the 138 entries. * FIX Remove duplicate VBLoRAConfig entry from peft.__all__ * Add RUF068 to detect duplicate __all__ entries; drop manual test
1 parent cad8422 commit cedea5b

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ extend-select = [
2121
"W", # PEP8 warnings
2222
"PT009", # Pytest assertions
2323
"RUF022", # Sorting of __all__
24+
"RUF068", # Duplicates in __all__
2425
]
2526
ignore = [
2627
"C901", # Function too complex

src/peft/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@
282282
"UniLoraConfig",
283283
"UniLoraModel",
284284
"VBLoRAConfig",
285-
"VBLoRAConfig",
286285
"VBLoRAModel",
287286
"VeloraConfig",
288287
"VeraConfig",

0 commit comments

Comments
 (0)