Skip to content

Commit e646bd9

Browse files
Fix optional validator to accept tuples of len > 1
1 parent 674c312 commit e646bd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/attr/validators.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def optional(
5454
validator: (
5555
_ValidatorType[_T]
5656
| list[_ValidatorType[_T]]
57-
| tuple[_ValidatorType[_T]]
57+
| tuple[_ValidatorType[_T], ...]
5858
),
5959
) -> _ValidatorType[_T | None]: ...
6060
def in_(options: Container[_T]) -> _ValidatorType[_T]: ...

0 commit comments

Comments
 (0)