#!/usr/bin/env python3
-import gkeepapi
+import gkeepapi # type: ignore
import os
import re
from typing import List, Dict
def debug_prefix(self) -> str:
return "gkeep"
- def periodic_render(self: str, key) -> bool:
+ def periodic_render(self, key: str) -> bool:
strikethrough = re.compile("(\u2611[^\n]*)\n", re.UNICODE)
linkify = re.compile(r".*(https?:\/\/\S+).*")
if length > max_length:
max_length = length
leading_spaces = len(x) - len(x.lstrip(" "))
- leading_spaces /= 2
+ leading_spaces //= 2
leading_spaces = int(leading_spaces)
x = x.lstrip(" ")
# self.debug_print(" * (%d) '%s'" % (leading_spaces, x))