Skip to content

Commit

Permalink
Remove future annotations to fix issue with ClassVar ForwardRef
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Sep 6, 2024
1 parent 6fb6b50 commit efc9a02
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pvi/device.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from __future__ import annotations

import json
import re
from collections.abc import Iterator, Sequence
Expand Down Expand Up @@ -418,7 +416,7 @@ class Group(Component):
"""Group of child components in a Layout"""

layout: LayoutUnion = Field(description="How to layout children on screen")
children: Tree = Field(description="Child Components")
children: "Tree" = Field(description="Child Components")


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

@classmethod
def deserialize(cls, yaml: Path) -> Device:
def deserialize(cls, yaml: Path) -> "Device":
"""Instantiate a Device instance from YAML.
Args:
Expand Down

0 comments on commit efc9a02

Please sign in to comment.