Enable static type checking

This commit is contained in:
Unrud
2020-10-04 15:13:01 +02:00
committed by Unrud
parent 34bec01c9b
commit 73e42f8101
9 changed files with 36 additions and 7 deletions

View File

@@ -31,6 +31,7 @@ import os
import string
from collections import OrderedDict
from configparser import RawConfigParser
from typing import Any, ClassVar
from radicale import auth, rights, storage, web
@@ -285,7 +286,7 @@ def load(paths=()):
class Configuration:
SOURCE_MISSING = {}
SOURCE_MISSING: ClassVar[Any] = {}
def __init__(self, schema):
"""Initialize configuration.