Skip to content

Commit 7f718a5

Browse files
committed
fix: typing
1 parent d8386a5 commit 7f718a5

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ indent_size = unset
3737

3838
[*.yml]
3939
indent_size = 2
40+
41+
[*.yaml]
42+
indent_size = 2

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33

44
repos:
55
- repo: https://github.com/psf/black
6-
rev: 25.9.0
6+
rev: 23.1.0
77
hooks:
88
- id: black
99
- repo: https://github.com/codespell-project/codespell
10-
rev: v2.4.1
10+
rev: v2.2.2
1111
hooks:
1212
- id: codespell
1313
args: [--ignore-words=.codespellignore]
1414
types_or: [jupyter, markdown, python, shell]
1515
- repo: https://github.com/PyCQA/flake8
16-
rev: 7.3.0
16+
rev: 6.0.0
1717
hooks:
1818
- id: flake8
1919
- repo: https://github.com/pre-commit/mirrors-mypy
20-
rev: v1.18.2
20+
rev: v1.14.1
2121
hooks:
2222
- id: mypy
2323
additional_dependencies:
2424
- click != 8.1.0
2525
- stactools
2626
- repo: https://github.com/pycqa/isort
27-
rev: 6.0.1
27+
rev: 5.12.0
2828
hooks:
2929
- id: isort
3030
- repo: https://github.com/igorshubovych/markdownlint-cli
31-
rev: v0.45.0
31+
rev: v0.33.0
3232
hooks:
3333
- id: markdownlint

src/stactools/sentinel3/stac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def product_type(source, datatype):
107107

108108

109109
def get_array_shape(
110-
asset_shape: List[Dict[str, int]] | None, item_shape: List[int]
110+
asset_shape: Optional[List[Dict[str, int]]], item_shape: List[int]
111111
) -> List[int]:
112112
asset_reshaped: Dict[str, int]
113113
if asset_shape is None:
@@ -283,7 +283,7 @@ def create_item(
283283
asset.extra_fields.pop("file:local_path", None)
284284

285285
# ensure shape is set at asset level
286-
asset_shape: list[dict[str, int]] | None = asset.extra_fields.get(
286+
asset_shape: Optional[List[Dict[str, int]]] = asset.extra_fields.get(
287287
"s3:shape", None
288288
)
289289
s3shape: List[int] = []

0 commit comments

Comments
 (0)