Skip to content

Commit

Permalink
forward Dataset's field references to resolve DatasetManager type
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Jul 10, 2023
1 parent 12ccd5e commit be1a34b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/lib/core/dmod/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -786,3 +786,9 @@ def uuid(self) -> UUID:
UUID for this instance.
"""
return self._uuid


# `Dataset`'s `manager` field is an Optional['DatasetManager'], however
# `DatasetManager` is defined after `Dataset`. Thus, `Dataset`'s field
# references need to be forwarded.
Dataset.update_forward_refs()

0 comments on commit be1a34b

Please sign in to comment.