Skip to content

Commit

Permalink
Extend visit_collection with support for annotations (#7263)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew <15331990+ahuang11@users.noreply.github.com>
  • Loading branch information
zanieb and ahuang11 committed Feb 6, 2023
1 parent 4cfb889 commit 995361c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/prefect/utilities/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ def rewrap(self, value: T) -> "BaseAnnotation[T]":
def rewrap(self, value: T) -> "BaseAnnotation[T]":
return type(self)(value)

def rewrap(self, value: T) -> "BaseAnnotation[T]":
return type(self)(value)

def __eq__(self, other: object) -> bool:
if not type(self) == type(other):
return False
Expand Down

0 comments on commit 995361c

Please sign in to comment.