Skip to content

Commit 16192f3

Browse files
committed
Pyline upgrades
1 parent 055f8d1 commit 16192f3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/python-app.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [linting]
66
pull_request:
77
branches: [master]
88

@@ -42,7 +42,7 @@ jobs:
4242
pip install -r requirements-dev.txt
4343
- name: Run Pylint
4444
run: |
45-
pylint office365
45+
pylint --disable=too-many-positional-arguments office365
4646
4747
pytest:
4848
runs-on: ubuntu-latest

office365/sharepoint/lists/list.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def get_list_data_as_stream(
407407
:param ClientResult[dict] return_type: The return type.
408408
"""
409409
if return_type is None:
410-
return_type = ClientResult(context, dict())
410+
return_type = ClientResult(context, {})
411411
payload = {
412412
"listFullUrl": list_full_url,
413413
"parameters": parameters,
@@ -433,7 +433,7 @@ def get_onedrive_list_data_as_stream(context, parameters=None, return_type=None)
433433
:param ClientResult[dict] return_type: The return type.
434434
"""
435435
if return_type is None:
436-
return_type = ClientResult(context, dict())
436+
return_type = ClientResult(context, {})
437437
payload = {
438438
"parameters": parameters,
439439
}
@@ -758,7 +758,7 @@ def render_list_data_as_stream(
758758
:param int render_options: Specifies the type of output to return.
759759
:param bool expand_groups: Specifies whether to expand the grouping or not.
760760
"""
761-
return_type = ClientResult(self.context, dict())
761+
return_type = ClientResult(self.context, {})
762762
if view_xml is None:
763763
view_xml = "<View/>"
764764
payload = {

office365/sharepoint/webs/web.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def get_list_data_as_stream(self, path, view_xml=None):
266266
"""
267267
if view_xml is None:
268268
view_xml = "<View><Query></Query></View>"
269-
return_type = ClientResult(self.context, dict())
269+
return_type = ClientResult(self.context, {})
270270

271271
def _get_list_data_as_stream():
272272
list_abs_url = self.url + path

0 commit comments

Comments
 (0)