Skip to content

Commit 2db7613

Browse files
build(deps-dev): bump ruff from 0.0.284 to 0.0.285 (#1208)
* build(deps-dev): bump ruff from 0.0.284 to 0.0.285 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.284 to 0.0.285. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.284...v0.0.285) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * fix: use isinstance Thanks ruff! --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Pete Gadomski <pete.gadomski@gmail.com>
1 parent 248168e commit 2db7613

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test = [
5757
"pytest-mock~=3.10",
5858
"pytest-recording~=0.13",
5959
"pytest~=7.3",
60-
"ruff==0.0.284",
60+
"ruff==0.0.285",
6161
"types-html5lib~=1.1",
6262
"types-orjson~=3.6",
6363
"types-python-dateutil~=2.8",

pystac/layout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def _get_template_value(self, stac_object: STACObject, template_var: str) -> Any
188188

189189
v: Any = prop_source
190190
for prop in template_var.split("."):
191-
if type(v) is dict:
191+
if isinstance(v, dict):
192192
if prop not in v:
193193
raise error
194194
v = v[prop]

0 commit comments

Comments
 (0)