Skip to content

Commit 42e6972

Browse files
committed
fix: type hint for Python 3.8
1 parent 7dcaa32 commit 42e6972

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

parglare/glr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from functools import reduce
22
from itertools import takewhile
3+
from typing import Dict
34

45
from parglare import Parser
56
from parglare import termui as t
@@ -986,7 +987,7 @@ def __init__(
986987
self.debug = debug
987988

988989
# Parents keyed by root node id
989-
self.parents: dict[int, Parent] = {}
990+
self.parents: Dict[int, Parent] = {}
990991

991992
def create_link(self, parent):
992993
parent.head = self

0 commit comments

Comments
 (0)