Skip to content

Commit

Permalink
Modernise existing type hints to Python >= 3.10 style
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot-100 committed Apr 25, 2024
1 parent 6fdd481 commit 3dce202
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spond/spond.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from __future__ import annotations

from datetime import datetime
from typing import List, Optional

import aiohttp

Expand Down Expand Up @@ -236,14 +236,14 @@ async def send_message(self, text, user=None, group_uid=None, chat_id=None):
@require_authentication
async def get_events(
self,
group_id: Optional[str] = None,
group_id: str | None = None,
include_scheduled: bool = False,
max_end: Optional[datetime] = None,
min_end: Optional[datetime] = None,
max_start: Optional[datetime] = None,
min_start: Optional[datetime] = None,
max_end: datetime | None = None,
min_end: datetime | None = None,
max_start: datetime | None = None,
min_start: datetime | None = None,
max_events: int = 100,
) -> List[dict]:
) -> list[dict]:
"""
Get events.
Subject to authenticated user's access.
Expand Down

0 comments on commit 3dce202

Please sign in to comment.