From 30bde36f6ce7b7fe56e63186f6e355efeac5a583 Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Sat, 16 Jan 2021 09:41:26 +0100 Subject: [PATCH] Removed backwards-incompatible __future__ statements --- app/parser.py | 1 - app/specs/spec.py | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/parser.py b/app/parser.py index f6f8234..bbac40c 100644 --- a/app/parser.py +++ b/app/parser.py @@ -1,4 +1,3 @@ -from __future__ import annotations import yaml from pathlib import Path from typing import List, Union diff --git a/app/specs/spec.py b/app/specs/spec.py index 8e57093..9b372ef 100644 --- a/app/specs/spec.py +++ b/app/specs/spec.py @@ -1,4 +1,3 @@ -from __future__ import annotations from pathlib import Path from typing import Union, Dict import skeleton @@ -88,7 +87,7 @@ class Spec: raise NotImplementedError() @classmethod - def from_dict(cls, name, obj: Dict, defaults: Dict) -> Spec: + def from_dict(cls, name, obj: Dict, defaults: Dict) -> "Spec": # Combine defaults with skeleton, creating new skeleton skel = skeleton.merge(cls.skeleton(), defaults)