Skip to content

Commit

Permalink
indentation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Mar 3, 2021
1 parent 150e85f commit 436f6db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
9 changes: 3 additions & 6 deletions pystac/extensions/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ def __init__(self, item):

self.item = item

def apply(self,
data_type=None,
size=None,
nodata=None,
checksum=None):
def apply(self, data_type=None, size=None, nodata=None, checksum=None):
"""Applies file extension properties to the extended Item.
Args:
Expand Down Expand Up @@ -227,4 +223,5 @@ def from_item(cls, item):
return cls(item)


FILE_EXTENSION_DEFINITION = ExtensionDefinition(Extensions.FILE, [ExtendedObject(Item, FileItemExt)])
FILE_EXTENSION_DEFINITION = ExtensionDefinition(Extensions.FILE,
[ExtendedObject(Item, FileItemExt)])
4 changes: 1 addition & 3 deletions tests/extensions/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def test_asset_data_type(self):
asset = item.assets["thumbnail"]

# Get
self.assertEqual(FileDataType.UINT8,
item.ext.file.get_data_type(asset))
self.assertEqual(FileDataType.UINT8, item.ext.file.get_data_type(asset))

# Set
new_data_type = FileDataType.UINT16
Expand All @@ -75,4 +74,3 @@ def test_asset_nodata(self):
item.ext.file.set_nodata(new_nodata, asset)
self.assertEqual(new_nodata, item.ext.file.get_nodata(asset))
item.validate()

0 comments on commit 436f6db

Please sign in to comment.