Skip to content

Commit cb9df84

Browse files
committed
fix: fix one extra broken future annotations with the new | syntax
1 parent a79b543 commit cb9df84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

strawberry_django/fields/filter_order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import dataclasses
44
import inspect
55
from functools import cached_property
6-
from typing import TYPE_CHECKING, Any, Final, Literal, overload
6+
from typing import TYPE_CHECKING, Any, Final, Literal, Optional, overload
77

88
from strawberry import UNSET
99
from strawberry.annotation import StrawberryAnnotation
@@ -95,7 +95,7 @@ def type_annotation(self) -> StrawberryAnnotation | None:
9595

9696
annotation = ordering.Ordering
9797

98-
return StrawberryAnnotation(annotation | None)
98+
return StrawberryAnnotation(Optional[annotation]) # noqa: UP045
9999

100100
return None
101101

0 commit comments

Comments
 (0)