diff --git a/gcalcli/_types.py b/gcalcli/_types.py index c06d3ca..04690f3 100755 --- a/gcalcli/_types.py +++ b/gcalcli/_types.py @@ -7,7 +7,7 @@ from typing import Any, Dict, List, TYPE_CHECKING, TypedDict if TYPE_CHECKING: - from googleapiclient._apis.calendar.v3.schemas import ( # type: ignore + from googleapiclient._apis.calendar.v3.schemas import ( # type: ignore CalendarListEntry, Event as GoogleEvent ) diff --git a/gcalcli/deprecations.py b/gcalcli/deprecations.py index e79cfdd..8ce20ee 100644 --- a/gcalcli/deprecations.py +++ b/gcalcli/deprecations.py @@ -1,6 +1,6 @@ import argparse import functools -from typing import Any +from typing import Any, Dict import gcalcli @@ -71,7 +71,7 @@ def __call__(self, parser, namespace, values, option_string=None): 'action': DeprecatedStoreTrue}} -OPTIONS: dict[str, dict[str, Any]] = { +OPTIONS: Dict[str, Dict[str, Any]] = { 'program': { "--client_id": {'default': gcalcli.__API_CLIENT_ID__}, "--client_secret": {'default': gcalcli.__API_CLIENT_SECRET__}, diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index 50a273f..9ac7c47 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -16,10 +16,10 @@ from dateutil.parser import parse from dateutil.relativedelta import relativedelta from dateutil.tz import tzlocal -from google_auth_oauthlib.flow import InstalledAppFlow # type: ignore -from googleapiclient.discovery import build # type: ignore -from googleapiclient.errors import HttpError # type: ignore -from google.auth.transport.requests import Request # type: ignore +from google_auth_oauthlib.flow import InstalledAppFlow # type: ignore +from googleapiclient.discovery import build # type: ignore +from googleapiclient.errors import HttpError # type: ignore +from google.auth.transport.requests import Request # type: ignore from . import actions, utils from ._types import Cache, CalendarListEntry @@ -34,7 +34,7 @@ STR_NOT_EMPTY, STR_TO_INT, VALID_COLORS) try: - import cPickle as pickle # type: ignore + import cPickle as pickle # type: ignore except Exception: import pickle diff --git a/gcalcli/utils.py b/gcalcli/utils.py index cb3bd77..75d84c4 100644 --- a/gcalcli/utils.py +++ b/gcalcli/utils.py @@ -6,7 +6,7 @@ from dateutil.parser import parse as dateutil_parse from dateutil.tz import tzlocal -from parsedatetime.parsedatetime import Calendar # type: ignore +from parsedatetime.parsedatetime import Calendar # type: ignore locale.setlocale(locale.LC_ALL, '') fuzzy_date_parse = Calendar().parse