Skip to content

Commit 9752f5e

Browse files
committed
backticks, use Optional instead of | None
1 parent eb2e5c6 commit 9752f5e

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Project setup
44

5-
1. If you don't have uv installed run:
5+
1. If you don't have `uv` installed run:
66

77
```bash
88
make setup
99
```
1010

11-
> This installs uv as a [standalone application][uv-install]. <br>
12-
> For more details, see also the [uv documentation][uv-docs]. <br>
11+
> This installs `uv` as a [standalone application][uv-install]. <br>
12+
> For more details, see also the [`uv` documentation][uv-docs]. <br>
1313
1414
2. Initialize project dependencies with `uv` and install `pre-commit` hooks:
1515

stac_model/input.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class ValueScalingProcessingExpression(ProcessingExpression):
7474
]
7575
]
7676

77-
ResizeType: TypeAlias = (
77+
ResizeType: TypeAlias = Optional[
7878
Literal[
7979
"crop",
8080
"pad",
@@ -87,8 +87,7 @@ class ValueScalingProcessingExpression(ProcessingExpression):
8787
"wrap-fill-outliers",
8888
"wrap-inverse-map",
8989
]
90-
| None
91-
)
90+
]
9291

9392

9493
class ModelBand(MLMBaseModel):
@@ -99,11 +98,11 @@ class ModelBand(MLMBaseModel):
9998
)
10099
)
101100
# similar to 'ProcessingExpression', but they can be omitted here
102-
format: Annotated[str | None, OmitIfNone] = Field(
101+
format: Annotated[Optional[str], OmitIfNone] = Field(
103102
default=None,
104103
description="",
105104
)
106-
expression: Annotated[Any | None, OmitIfNone] = Field(
105+
expression: Annotated[Optional[Any], OmitIfNone] = Field(
107106
default=None,
108107
description="",
109108
)

0 commit comments

Comments
 (0)