Skip to content

Commit 95610ee

Browse files
committed
Defined self.captures explicitly
Signed-off-by: John Rofrano <johnnyroy@johnrofrano.com>
1 parent 7422b65 commit 95610ee

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cldk/models/treesitter/models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ class Capture:
4848
name: str
4949

5050
def __init__(self, captures: Dict[str, List[Node]]):
51+
self.captures = []
5152
for capture_name, captures in captures.items():
5253
self.captures = [self.Capture(node=node, name=capture_name) for node in captures]
5354

0 commit comments

Comments
 (0)