Skip to content

Commit 5a2fcce

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/render-extension
2 parents 2d65be1 + 360081f commit 5a2fcce

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- uses: actions/setup-python@v5
4242
with:
4343
python-version: ${{ matrix.python-version }}
44-
- uses: astral-sh/setup-uv@v3
44+
- uses: astral-sh/setup-uv@v4
4545
with:
4646
enable-cache: true
4747
- name: Sync
@@ -64,7 +64,7 @@ jobs:
6464
- uses: actions/setup-python@v5
6565
with:
6666
python-version: "3.10"
67-
- uses: astral-sh/setup-uv@v3
67+
- uses: astral-sh/setup-uv@v4
6868
with:
6969
enable-cache: true
7070
- name: Install with dependencies
@@ -80,7 +80,7 @@ jobs:
8080
# will trigger a failure for coverage drops in a later job
8181
run: uv run coverage xml --fail-under 0
8282
- name: Upload All coverage to Codecov
83-
uses: codecov/codecov-action@v4
83+
uses: codecov/codecov-action@v5
8484
if: ${{ env.GITHUB_REPOSITORY }} == 'stac-utils/pystac'
8585
with:
8686
token: ${{ secrets.CODECOV_TOKEN }}
@@ -105,7 +105,7 @@ jobs:
105105
- uses: actions/setup-python@v5
106106
with:
107107
python-version: ${{ matrix.python-version }}
108-
- uses: astral-sh/setup-uv@v3
108+
- uses: astral-sh/setup-uv@v4
109109
with:
110110
enable-cache: true
111111
- name: Sync
@@ -120,7 +120,7 @@ jobs:
120120
- uses: actions/setup-python@v5
121121
with:
122122
python-version: "3.10"
123-
- uses: astral-sh/setup-uv@v3
123+
- uses: astral-sh/setup-uv@v4
124124
with:
125125
enable-cache: true
126126
- name: Sync
@@ -140,7 +140,7 @@ jobs:
140140
- uses: actions/setup-python@v5
141141
with:
142142
python-version: "3.10"
143-
- uses: astral-sh/setup-uv@v3
143+
- uses: astral-sh/setup-uv@v4
144144
with:
145145
enable-cache: true
146146
- name: Sync
@@ -157,7 +157,7 @@ jobs:
157157
- uses: actions/setup-python@v5
158158
with:
159159
python-version: "3.10"
160-
- uses: astral-sh/setup-uv@v3
160+
- uses: astral-sh/setup-uv@v4
161161
with:
162162
enable-cache: true
163163
- name: Install pandoc

pystac/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class StringEnum(str, Enum):
8080
value."""
8181

8282
def __repr__(self) -> str:
83-
return str(self.value)
83+
return repr(self.value)
8484

8585
def __str__(self) -> str:
8686
return cast(str, self.value)

tests/test_utils.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from pystac import utils
1111
from pystac.utils import (
1212
JoinType,
13+
StringEnum,
1314
is_absolute_href,
1415
is_file_path,
1516
join_path_or_url,
@@ -474,3 +475,10 @@ def test_join_path_or_url() -> None:
474475
)
475476
def test_is_file_path(href: str, expected: bool) -> None:
476477
assert is_file_path(href) == expected
478+
479+
480+
def test_stringenum_repr() -> None:
481+
class SomeEnum(StringEnum):
482+
THIS = "this"
483+
484+
assert repr(SomeEnum.THIS) == "'this'"

0 commit comments

Comments
 (0)