Skip to content

Commit e444f67

Browse files
author
Jon Duckworth
authored
Merge pull request #531 from l0b0/refactor/remove-redundant-parentheses
refactor: Remove redundant parentheses
2 parents a02b371 + b0efdcd commit e444f67

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pystac/cache.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ def get_cache_key(stac_object: "STACObject_Type") -> Tuple[str, bool]:
2323
"""
2424
href = stac_object.get_self_href()
2525
if href is not None:
26-
return (href, True)
26+
return href, True
2727
else:
2828
ids: List[str] = []
2929
obj: Optional[pystac.STACObject] = stac_object
3030
while obj is not None:
3131
ids.append(obj.id)
3232
obj = obj.get_parent()
33-
return ("/".join(ids), False)
33+
return "/".join(ids), False
3434

3535

3636
class ResolvedObjectCache:

pystac/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ def walk(
776776
children = self.get_children()
777777
items = self.get_items()
778778

779-
yield (self, children, items)
779+
yield self, children, items
780780
for child in self.get_children():
781781
yield from child.walk()
782782

pystac/validation/stac_validator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def get_schema_from_uri(self, schema_uri: str) -> Tuple[Dict[str, Any], Any]:
153153
base_uri=schema_uri, referrer=schema, store=self.schema_cache
154154
)
155155

156-
return (schema, resolver)
156+
return schema, resolver
157157

158158
def _validate_from_uri(self, stac_dict: Dict[str, Any], schema_uri: str) -> None:
159159
schema, resolver = self.get_schema_from_uri(schema_uri)

0 commit comments

Comments
 (0)