From abc053c5a3b628d92ea5f89a6ac09176d62e912c Mon Sep 17 00:00:00 2001 From: kairi003 Date: Fri, 17 Mar 2023 12:24:15 +0900 Subject: [PATCH] REFAC: Specify type of blocks arg in Layout ctor --- src/layoutparser/elements/layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layoutparser/elements/layout.py b/src/layoutparser/elements/layout.py index ec421e4..6f4e461 100644 --- a/src/layoutparser/elements/layout.py +++ b/src/layoutparser/elements/layout.py @@ -46,7 +46,7 @@ class Layout(MutableSequence): Defaults to None. """ - def __init__(self, blocks: Optional[List] = None, *, page_data: Dict = None): + def __init__(self, blocks: Optional[List["Layout"]] = None, *, page_data: Dict = None): if not ( (blocks is None)