From 51f84e31c2ec1abc22eed1f3445bd2b959541c39 Mon Sep 17 00:00:00 2001 From: weckyy702 Date: Mon, 21 Dec 2020 22:49:15 +0100 Subject: [PATCH] fixed error in source code interpretation --- gui.py | 1 - interpet_source.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gui.py b/gui.py index 17b14c1..885e096 100644 --- a/gui.py +++ b/gui.py @@ -1,4 +1,3 @@ - from to_nassi import nassi import PySimpleGUI as sg diff --git a/interpet_source.py b/interpet_source.py index a5939dd..46b7893 100644 --- a/interpet_source.py +++ b/interpet_source.py @@ -1,7 +1,7 @@ from Iinstruction import * import logging import re -from typing import Any, Iterator +from typing import Any, List class Scope(): @@ -15,7 +15,7 @@ class Scope(): def add_subscope(self, subscope) -> None: self.contents.append(subscope) -def load_src(filepath: str) -> list[str]: +def load_src(filepath: str) -> List[str]: lines = [] try: with open(filepath) as file: