Skip to content

Commit 65d71c6

Browse files
committed
lint
1 parent 2f61af9 commit 65d71c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lean_spec/types/list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class LeanList:
99
"""A generic type for creating length-limited lists."""
1010

1111
@classmethod
12-
def __class_getitem__(cls, params: tuple[Any, ...]):
13-
"""Make the class subscriptable (e.g., List[str, 10])."""
12+
def __class_getitem__(cls, params: tuple[Any, ...]) -> Any:
13+
"""Make the class subscriptable (e.g., LeanList[str, 10])."""
1414
item_type, max_length = params
1515
return Annotated[list[item_type], Field(max_length=max_length)]

0 commit comments

Comments
 (0)