Skip to content

Commit 09e87a6

Browse files
committed
refactor(ast): update get_scopes method signature's typing to include None
1 parent 6aaeedc commit 09e87a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fortls/parsers/internal/ast.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ def add_error(self, msg: str, sev: int, ln: int, sch: int, ech: int = None):
168168
def start_ppif(self, line_number: int):
169169
self.pp_if.append([line_number - 1, -1])
170170

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

175-
def get_scopes(self, line_number: int = None):
175+
def get_scopes(self, line_number: int | None = None):
176176
"""Get a list of all the scopes present in the line number provided.
177177
178178
Parameters

0 commit comments

Comments
 (0)