Skip to content

Commit

Permalink
Fix TypeError: FileExtensionUpdated() takes no arguments
Browse files Browse the repository at this point in the history
Fixed the error mentioned in the issue stactools-packages#31
  • Loading branch information
jonas-eberle authored Jun 12, 2024
1 parent 36375cc commit 9dfbdb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/stactools/sentinel3/file_extension_updated.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def local_path(self, v: Optional[str]) -> None:
def ext(
cls, obj: pystac.Asset, add_if_missing: bool = False
) -> "FileExtensionUpdated":
super().ext(obj, add_if_missing)
return cls(obj)
return super().ext(obj, add_if_missing)

@classmethod
def get_schema_uri(cls) -> str:
Expand Down

0 comments on commit 9dfbdb5

Please sign in to comment.