From df97d170bf625568ce1619796c73641c53e90668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=82=D0=B5=D0=BF=D0=B0=D0=BD=D0=B5=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=20=D0=9E=D0=BB=D1=8C=D0=B3=D0=B0?= Date: Thu, 15 Apr 2021 11:49:08 +0300 Subject: [PATCH] Add autodoc_typehints = 'none' --- docs/source/conf.py | 1 + main/extra_func.py | 1 + main/forms.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 3b57f8a..993b68f 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -181,6 +181,7 @@ intersphinx_mapping = { } autodoc_default_flags = ['members'] +autodoc_typehints = "none" # spell checking spelling_lang = 'ru_RU' diff --git a/main/extra_func.py b/main/extra_func.py index 8b75346..e0aa110 100644 --- a/main/extra_func.py +++ b/main/extra_func.py @@ -23,6 +23,7 @@ class ZendeskAdmin: :type token: :class:`str` :param password: Пароль администратора, указанный в env :type password: :class:`str` + """ credentials: dict = { diff --git a/main/forms.py b/main/forms.py index 6b31dbd..dd45b16 100644 --- a/main/forms.py +++ b/main/forms.py @@ -96,7 +96,7 @@ class StatisticForm(forms.Form): :param range_end: Дата и время окончания работы :type range_end: :class:`django.forms.fields.DateField` """ - email = forms.EmailField( + email: str = forms.EmailField( label='Электроная почта', widget=forms.EmailInput( attrs={