Skip to content

Commit

Permalink
Fix more linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jspricke committed Dec 25, 2021
1 parent 3dfff9f commit 60fb9d6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions remind.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ class Remind:

def __init__(
self,
filename: str = expanduser("~/.reminders"),
filename: str = None,
localtz: Optional[ZoneInfo] = None,
startdate: date = date.today() - timedelta(weeks=12),
startdate: date = None,
month: int = 15,
alarm: timedelta = timedelta(minutes=-10),
alarm: timedelta = None,
) -> None:
"""Constructor.
Expand All @@ -51,14 +51,14 @@ def __init__(
startdate -- the date to start parsing, will be passed to remind
month -- how many month to parse, will be passed to remind -s
"""
self._filename = filename if filename else expanduser("~/.reminders")
self._localtz = localtz if localtz else ZoneInfo("localtime")
self._filename = filename
self._startdate = startdate
self._startdate = startdate if startdate else date.today() - timedelta(weeks=12)
self._month = month
self._alarm = alarm if alarm else timedelta(minutes=-10)
self._lock = Lock()
self._reminders: dict[str, dict[str, Any]] = {}
self._mtime = 0.0
self._alarm = alarm

def _parse_remind(
self, filename: str, lines: str = ""
Expand Down

0 comments on commit 60fb9d6

Please sign in to comment.