Skip to content

Commit

Permalink
ignore mypy and reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
bain3 committed Jan 8, 2025
1 parent 4a39b6f commit c1fce74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
4 changes: 1 addition & 3 deletions pronotepy/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,7 @@ def homework(
"""
if not date_to:
date_to = datetime.datetime.strptime(
self.func_options["donneesSec"]["data"]["General"]["DerniereDate"][
"V"
],
self.func_options["donneesSec"]["data"]["General"]["DerniereDate"]["V"],
"%d/%m/%Y",
).date()
json_data = {
Expand Down
9 changes: 3 additions & 6 deletions pronotepy/dataClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ def serialize_slot(slot: Any) -> Any:
if include_properties
else self.__slots__
)
for slot_name in to_iter:
for slot_name in to_iter: # type: ignore
if slot_name.startswith("_") or slot_name in exclude:
# Skip private and excluded slots
continue
Expand Down Expand Up @@ -516,9 +516,7 @@ def report(self) -> Optional[Report]:
When ``None``, then the report is not yet published or is unavailable for any other reason
"""
json_data = {"periode": {"G": 2, "N": self.id, "L": self.name}}
data = self._client.post("PageBulletins", 13, json_data)["donneesSec"][
"data"
]
data = self._client.post("PageBulletins", 13, json_data)["donneesSec"]["data"]
return Report(data) if "Message" not in data else None

@property
Expand Down Expand Up @@ -1835,8 +1833,7 @@ def guardians(self) -> List[Guardian]:
{"Eleve": {"N": self.id}, "AvecEleve": True, "AvecResponsables": True},
)
return [
Guardian(j)
for j in self._cache["donneesSec"]["data"]["Responsables"]["V"]
Guardian(j) for j in self._cache["donneesSec"]["data"]["Responsables"]["V"]
]


Expand Down

0 comments on commit c1fce74

Please sign in to comment.