Skip to content

Commit efc9a02

Browse files
committed
Remove future annotations to fix issue with ClassVar ForwardRef
1 parent 6fb6b50 commit efc9a02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pvi/device.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations
2-
31
import json
42
import re
53
from collections.abc import Iterator, Sequence
@@ -418,7 +416,7 @@ class Group(Component):
418416
"""Group of child components in a Layout"""
419417

420418
layout: LayoutUnion = Field(description="How to layout children on screen")
421-
children: Tree = Field(description="Child Components")
419+
children: "Tree" = Field(description="Child Components")
422420

423421

424422
ComponentUnion = Group | SignalR | SignalW | SignalRW | SignalX | SignalRef | DeviceRef
@@ -471,7 +469,7 @@ def serialize(self, yaml: Path):
471469
dump_yaml(d, yaml)
472470

473471
@classmethod
474-
def deserialize(cls, yaml: Path) -> Device:
472+
def deserialize(cls, yaml: Path) -> "Device":
475473
"""Instantiate a Device instance from YAML.
476474
477475
Args:

0 commit comments

Comments
 (0)