Skip to content

Commit 6c44096

Browse files
authored
Type annotation fix (huggingface#840)
1 parent 4b371b4 commit 6c44096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/peft/tuners/lora.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class LoraConfig(PeftConfig):
104104
),
105105
},
106106
)
107-
layers_to_transform: Optional[Union[List, int]] = field(
107+
layers_to_transform: Optional[Union[List[int], int]] = field(
108108
default=None,
109109
metadata={
110110
"help": "The layer indexes to transform, is this argument is specified, PEFT will transform only the layers indexes that are specified inside this list. If a single integer is passed, PEFT will transform only the layer at this index."

0 commit comments

Comments
 (0)