Skip to content

Commit

Permalink
correct typing
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 authored Nov 19, 2023
1 parent 0b09ae2 commit a56c326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pronotepy/dataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -761,8 +761,8 @@ def __init__(self, client: ClientBase, json_dict: dict) -> None:
self.type: int = self._resolver(int, "G") # 0 link, 1 file

if self.type == 0:
url: str | None = self._resolver(str, "url", default=None)
self.url = self.name if url is None else url
url = self._resolver(str, "url", default=None)
self.url: str = self.name if url is None else url
else:
padd = Padding.pad(
json.dumps({"N": self.id, "Actif": True}).replace(" ", "").encode(), 16
Expand Down

0 comments on commit a56c326

Please sign in to comment.