Skip to content

Commit 7621455

Browse files
authored
fix: type of proj:code setter (#1560)
* fix: type of proj:code setter * chore: update changelog
1 parent 97956b8 commit 7621455

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
### Fixed
1212

1313
- More permissive collection extent deserialization ([#1559](https://github.com/stac-utils/pystac/pull/1559))
14+
- Type of `proj:code` setter ([#1560](https://github.com/stac-utils/pystac/pull/1560))
1415

1516
## [v1.13.0] - 2025-04-15
1617

pystac/extensions/projection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def code(self) -> str | None:
163163
return self._get_property(CODE_PROP, str)
164164

165165
@code.setter
166-
def code(self, v: int | None) -> None:
166+
def code(self, v: str | None) -> None:
167167
self._set_property(CODE_PROP, v, pop_if_none=False)
168168

169169
@property

0 commit comments

Comments
 (0)