File: settings.py

package info (click to toggle)
python-django-stubs 5.2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,832 kB
  • sloc: python: 5,185; makefile: 15; sh: 8
file content (18 lines) | stat: -rw-r--r-- 428 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pathlib import Path
from typing import Any, TypedDict, type_check_only

from typing_extensions import NotRequired


@type_check_only
class TemplatesSetting(TypedDict):
    """Typing helper if you want to type `TEMPLATE` setting."""

    BACKEND: str
    NAME: NotRequired[str]
    DIRS: NotRequired[list[str | Path]]
    APP_DIRS: NotRequired[bool]
    OPTIONS: NotRequired[dict[str, Any]]


__all__ = ["TemplatesSetting"]