Skip to content

Commit f8e1403

Browse files
committed
make linter happy
1 parent 5104324 commit f8e1403

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

lokalise/endpoints/base_endpoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ def path_with_params(self, **ids: Optional[Union[str, int]]) -> str:
113113
in PATH and the provided ids. Some or all ids may be omitted depending
114114
on the actual endpoint.
115115
"""
116-
defaults = dict(parent_id='', resource_id='', subresource_id='')
116+
defaults = {"parent_id": '', "resource_id": '', "subresource_id": ''}
117117
return Template(self.PATH).substitute(defaults, **ids)

tests/conftest.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ def screenshot_data():
4343
data = file.read()
4444
except FileNotFoundError:
4545
return ''
46-
else:
47-
file.close()
48-
return data
46+
file.close()
47+
return data
4948

5049

5150
@pytest.fixture(scope='module')

0 commit comments

Comments
 (0)