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
2 people authored and github-actions[bot] committed Jan 12, 2023
1 parent 8e38d51 commit 92ccad9
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 @@ -28,6 +28,9 @@ def unwrap(self) -> 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 92ccad9

Please sign in to comment.