Skip to content

Commit

Permalink
#2271 fix type hint for older python
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Jan 6, 2025
1 parent 1ed438e commit 3bab6b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/psyclone/psyir/nodes/codeblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
''' This module contains the CodeBlock node implementation.'''

from enum import Enum
from typing import List

from fparser.two import Fortran2003
from fparser.two.utils import walk
from psyclone.core import AccessType, Signature, VariablesAccessInfo
Expand Down Expand Up @@ -151,7 +153,7 @@ def node_str(self, colour=True):
return (f"{self.coloured_name(colour)}["
f"{list(map(type, self._fp2_nodes))}]")

def get_symbol_names(self) -> list[str]:
def get_symbol_names(self) -> List[str]:
'''
Analyses the fparser2 parse tree associated with this CodeBlock and
returns the names of all symbols accessed within it. Since, by
Expand Down

0 comments on commit 3bab6b7

Please sign in to comment.