mirror of
https://github.com/Kozea/Radicale.git
synced 2025-09-15 20:36:55 +00:00
- Linting
This commit is contained in:
parent
16b7311229
commit
5c9c5b1572
6 changed files with 20 additions and 15 deletions
|
@ -31,7 +31,8 @@ from typing import Any, Dict, List, Optional, Sequence, Tuple
|
|||
|
||||
import vobject
|
||||
|
||||
from radicale.hook import (BaseHook, HookNotificationItem, HookNotificationItemTypes)
|
||||
from radicale.hook import (BaseHook, HookNotificationItem,
|
||||
HookNotificationItemTypes)
|
||||
from radicale.log import logger
|
||||
|
||||
PLUGIN_CONFIG_SCHEMA = {
|
||||
|
@ -985,7 +986,7 @@ class Hook(BaseHook):
|
|||
return
|
||||
|
||||
# Dealing with an update to an existing event, compare new and previous content.
|
||||
new_event: Event = read_ics_event(contents=new_item_str)
|
||||
new_event: Event = read_ics_event(contents=new_item_str) # type: ignore
|
||||
previous_event: Optional[Event] = read_ics_event(contents=previous_item_str)
|
||||
if not previous_event:
|
||||
# If we cannot parse the previous event for some reason, simply treat it as a new event.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue