Skip to content

Commit

Permalink
refactor(ast): update get_scopes method signature's typing to include…
Browse files Browse the repository at this point in the history
… None
  • Loading branch information
gnikit committed May 7, 2024
1 parent 6aaeedc commit 09e87a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fortls/parsers/internal/ast.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,11 @@ def add_error(self, msg: str, sev: int, ln: int, sch: int, ech: int = None):
def start_ppif(self, line_number: int):
self.pp_if.append([line_number - 1, -1])

def end_ppif(self, line_number):
def end_ppif(self, line_number: int):
if len(self.pp_if) > 0:
self.pp_if[-1][1] = line_number - 1

def get_scopes(self, line_number: int = None):
def get_scopes(self, line_number: int | None = None):
"""Get a list of all the scopes present in the line number provided.
Parameters
Expand Down

0 comments on commit 09e87a6

Please sign in to comment.