Removed backwards-incompatible __future__ statements
parent
2660af23d8
commit
30bde36f6c
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import annotations
|
|
||||||
import yaml
|
import yaml
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
from __future__ import annotations
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Union, Dict
|
from typing import Union, Dict
|
||||||
import skeleton
|
import skeleton
|
||||||
|
@ -88,7 +87,7 @@ class Spec:
|
||||||
raise NotImplementedError()
|
raise NotImplementedError()
|
||||||
|
|
||||||
@classmethod
|
@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
|
# Combine defaults with skeleton, creating new skeleton
|
||||||
skel = skeleton.merge(cls.skeleton(), defaults)
|
skel = skeleton.merge(cls.skeleton(), defaults)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue