fixed error in source code interpretation

This commit is contained in:
weckyy702
2020-12-21 22:49:15 +01:00
parent 711ceb2567
commit 51f84e31c2
2 changed files with 2 additions and 3 deletions

1
gui.py
View File

@@ -1,4 +1,3 @@
from to_nassi import nassi from to_nassi import nassi
import PySimpleGUI as sg import PySimpleGUI as sg

View File

@@ -1,7 +1,7 @@
from Iinstruction import * from Iinstruction import *
import logging import logging
import re import re
from typing import Any, Iterator from typing import Any, List
class Scope(): class Scope():
@@ -15,7 +15,7 @@ class Scope():
def add_subscope(self, subscope) -> None: def add_subscope(self, subscope) -> None:
self.contents.append(subscope) self.contents.append(subscope)
def load_src(filepath: str) -> list[str]: def load_src(filepath: str) -> List[str]:
lines = [] lines = []
try: try:
with open(filepath) as file: with open(filepath) as file: