diff --git a/pyproject.toml b/pyproject.toml index bd0a5b671..dd314a27b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ test = [ "pytest-mock~=3.10", "pytest-recording~=0.13", "pytest~=7.3", - "ruff==0.0.284", + "ruff==0.0.285", "types-html5lib~=1.1", "types-orjson~=3.6", "types-python-dateutil~=2.8", diff --git a/pystac/layout.py b/pystac/layout.py index ccd71c14e..8ec776009 100644 --- a/pystac/layout.py +++ b/pystac/layout.py @@ -188,7 +188,7 @@ def _get_template_value(self, stac_object: STACObject, template_var: str) -> Any v: Any = prop_source for prop in template_var.split("."): - if type(v) is dict: + if isinstance(v, dict): if prop not in v: raise error v = v[prop]