Skip to content

Commit

Permalink
fix: avoid 3.10+ set syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adhtruong committed Jan 2, 2024
1 parent 1ff9dc9 commit d197838
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_recursive_models.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
from __future__ import annotations

from dataclasses import dataclass
from typing import Optional

from polyfactory.factories.dataclass_factory import DataclassFactory


@dataclass
class Node:
a: int
child: Node | None
child: Optional[Node] # noqa: UP007


def test_recusive_model() -> None:
Expand Down

0 comments on commit d197838

Please sign in to comment.