[easy] fix pre commit error on trunk (#26665)

Signed-off-by: Huamin Li <3ericli@gmail.com>
This commit is contained in:
Huamin Li
2025-10-12 14:25:34 -07:00
committed by GitHub
parent a6049be73c
commit 4fca1a1bd2

View File

@ -609,8 +609,8 @@ class SPLADESparsePooler(Pooler):
def __init__(
self,
mlm_head: nn.Module,
cls_token_id: Optional[int] = 101,
sep_token_id: Optional[int] = 102,
cls_token_id: int | None = 101,
sep_token_id: int | None = 102,
pooling: str = "max",
remove_cls_sep: bool = True,
):