Skip to content

Commit dcac0d9

Browse files
committed
lint: fix two small lints found by ruff
1 parent 8774c98 commit dcac0d9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pystac/extensions/eo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ def migrate(
545545
obj["stac_extensions"] = []
546546
if view.SCHEMA_URI not in obj["stac_extensions"]:
547547
obj["stac_extensions"].append(view.SCHEMA_URI)
548-
if not "view:{}".format(field) in obj["properties"]:
548+
if "view:{}".format(field) not in obj["properties"]:
549549
obj["properties"]["view:{}".format(field)] = obj["properties"][
550550
"eo:{}".format(field)
551551
]

tests/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import unittest
99
from copy import deepcopy
1010
from datetime import datetime
11-
from typing import TYPE_CHECKING, Any, Dict, Type
11+
from typing import Any, Dict, Type
1212

1313
from dateutil.parser import parse
1414

0 commit comments

Comments
 (0)