Added python3.5-style type annotations to pretix.base

This commit is contained in:
Raphael Michel
2015-10-25 21:26:04 +01:00
parent ecebe481d7
commit 79ad8b40ed
28 changed files with 142 additions and 113 deletions

View File

@@ -1,6 +1,7 @@
from enum import Enum
from django.apps import apps
from typing import List
class PluginType(Enum):
@@ -10,7 +11,7 @@ class PluginType(Enum):
EXPORT = 4
def get_all_plugins() -> "List[class]":
def get_all_plugins() -> List[type]:
"""
Returns the PretixPluginMeta classes of all plugins found in the installed Django apps.
"""