Skip to content

Commit

Permalink
use Union instead of union operator
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenhillier committed Feb 4, 2025
1 parent cf29cbb commit 94ba613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions planet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import random
import re
import string
from typing import AsyncGenerator, Callable, List, Optional, Protocol, runtime_checkable
from typing import AsyncGenerator, Callable, List, Optional, Protocol, Union, runtime_checkable
from urllib.parse import urlparse

import httpx
Expand Down Expand Up @@ -307,7 +307,7 @@ def ref(self):
raise AttributeError("Feature object does not contain a reference")


GeojsonLike = Feature | dict | str
GeojsonLike = Union[Feature, dict, str]
"""
GeojsonLike is a type union that represents:
* a dict containing a valid GeoJSON Feature or Geometry
Expand Down

0 comments on commit 94ba613

Please sign in to comment.