Skip to content

Commit 34eef16

Browse files
committed
update black version to the latest
1 parent 747ab0b commit 34eef16

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ env.DEFAULT_PYTHON }}
29-
- uses: psf/black@23.9.1
29+
- uses: psf/black@24.4.2
3030

3131
pylint:
3232
runs-on: ubuntu-latest

office365/sharepoint/attachments/attachment.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import AnyStr, Optional, IO
1+
from typing import IO, AnyStr, Optional
22

33
from typing_extensions import Self
44

office365/sharepoint/attachments/collection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22
from functools import partial
3-
from typing import IO, AnyStr, Optional, Callable
3+
from typing import IO, AnyStr, Callable, Optional
44

55
from typing_extensions import Self
66

office365/sharepoint/navigation/node.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@ class NavigationNode(Entity):
1515
"""
1616

1717
def __str__(self):
18-
return self.title
18+
return self.title or self.entity_type_name
1919

2020
def __repr__(self):
21-
return self.url
21+
return self.url or self.entity_type_name
2222

2323
@property
2424
def children(self):
25+
# type: () -> NavigationNodeCollection
2526
"""Gets the collection of child nodes of the navigation node."""
2627
return self.properties.get(
2728
"Children",
@@ -49,6 +50,7 @@ def url(self):
4950

5051
@url.setter
5152
def url(self, value):
53+
# type: (str) -> None
5254
"""Sets a value that specifies the URL stored with the navigation node."""
5355
self.set_property("Url", value)
5456

0 commit comments

Comments
 (0)