1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-08-10 18:40:53 +00:00

learn to make tox happy

This commit is contained in:
Tuna Celik 2024-03-02 19:44:10 +01:00
parent b24eae8369
commit a72964ab3f
4 changed files with 8 additions and 9 deletions

View file

@ -22,16 +22,14 @@ import xml.etree.ElementTree as ET
from http import client
from typing import Dict, Optional, cast
import defusedxml.ElementTree as DefusedET
import radicale.item as radicale_item
from radicale import httputils, storage, types, xmlutils
from radicale.app.base import Access, ApplicationBase
from radicale.hook import HookNotificationItem, HookNotificationItemTypes
from radicale.log import logger
# HACK: https://github.com/tiran/defusedxml/issues/54
import defusedxml.ElementTree as DefusedET # isort:skip
sys.modules["xml.etree"].ElementTree = ET # type:ignore[attr-defined]
def xml_proppatch(base_prefix: str, path: str,
xml_request: Optional[ET.Element],