Skip to content

Commit

Permalink
fix python 3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
thrau committed Mar 31, 2024
1 parent 286de5f commit 77734b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notion_objects/properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def get(self, field: str, obj: dict) -> List[str]:
items = obj["properties"][field][self.type]
return [item["id"] for item in items]

def set(self, field: str, value: str | Iterable[str], obj: dict):
def set(self, field: str, value: Union[str, Iterable[str]], obj: dict):
if isinstance(value, str):
ids = [value]
else:
Expand Down

0 comments on commit 77734b4

Please sign in to comment.