Skip to content

Commit

Permalink
test: fix doctest for python 3.9 and lower
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed May 24, 2024
1 parent b54f1b3 commit 9b5079e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/autora/state_history_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def _filter_to_last(condition, iterable):
>>> from typing import Union
>>> def condition_with_type_support_factory(key, value):
... def condition(entry):
... if isinstance(entry, Union[dict, Delta]):
... if isinstance(entry, dict) or isinstance(entry, Delta):
... result = entry.get(key, None) == value
... elif isinstance(entry, State):
... if hasattr(entry, key):
Expand Down

0 comments on commit 9b5079e

Please sign in to comment.