From 64c6b476b350c60ed0a1a9eb3dd75d460dc6c536 Mon Sep 17 00:00:00 2001 From: David Barnett Date: Sun, 22 Sep 2024 00:25:42 -0600 Subject: [PATCH] tooling: enable mypy --cache-fine-grained --- gcalcli/gcal.py | 6 +++--- tox.ini | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gcalcli/gcal.py b/gcalcli/gcal.py index f1da510..0ee68ee 100644 --- a/gcalcli/gcal.py +++ b/gcalcli/gcal.py @@ -13,7 +13,7 @@ import sys import textwrap import time -from typing import Iterable +from typing import Any, Iterable from unicodedata import east_asian_width import googleapiclient.http @@ -54,8 +54,8 @@ class GoogleCalendarInterface: agenda_length = 5 conflicts_lookahead_days = 30 max_retries = 5 - credentials = None - cal_service = None + credentials: Any = None + cal_service: Any = None # Special override to bypass all auth and defer the auth-related failures # as late as possible, for testing. userless_mode: bool = False diff --git a/tox.ini b/tox.ini index ea2d53a..b6734ec 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ description = run type checks deps = mypy >= 1.0 commands = - mypy {posargs:gcalcli} + mypy {posargs:gcalcli} --cache-fine-grained [testenv:cli] description = run functional tests using Bats