diff --git a/biscuit/core/mixins.py b/biscuit/core/mixins.py index 281d2c3725e1824d0ce1a2a34a644e8c4a407698..024dd4870d076da301dd3c51be1a0e603e399144 100644 --- a/biscuit/core/mixins.py +++ b/biscuit/core/mixins.py @@ -16,13 +16,13 @@ class ExtensibleModel(object): in every app is executed. All code that shall be injected into a model goes there. :Example: - + .. code-block:: python from datetime import date, timedelta from biscuit.core.models import Person - + @Person.property def is_cool(self) -> bool: return True diff --git a/biscuit/core/templatetags/data_helpers.py b/biscuit/core/templatetags/data_helpers.py index 89b4e28fa8ad9eca96fc6cb0c8bd5485a8169667..66b41efd37e7ddbae179dd2d6dfef619f0ff3c98 100644 --- a/biscuit/core/templatetags/data_helpers.py +++ b/biscuit/core/templatetags/data_helpers.py @@ -1,4 +1,4 @@ -from typing import Dict, Any +from typing import Any from django import template diff --git a/biscuit/core/util/core_helpers.py b/biscuit/core/util/core_helpers.py index a81776fdb12d9eb26bfa949dc8f508f3d2fa55d5..bf19da058ae245bf4e9f47247c40786ab1d2d761 100644 --- a/biscuit/core/util/core_helpers.py +++ b/biscuit/core/util/core_helpers.py @@ -1,6 +1,6 @@ from importlib import import_module import pkgutil -from typing import Optional, Sequence +from typing import Sequence from django.http import HttpRequest diff --git a/biscuit/core/views.py b/biscuit/core/views.py index d2bfa9c91d0597b99c979b4649d2f05da055e2bc..a32b9abe19b3131304c0a568d643a8336acd70d1 100644 --- a/biscuit/core/views.py +++ b/biscuit/core/views.py @@ -1,5 +1,4 @@ -import requests -from typing import Callable, Optional +from typing import Optional from django.contrib.auth.decorators import login_required from django.http import Http404, HttpRequest, HttpResponse