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

@@ -2,6 +2,7 @@ import json
from django.core.serializers.json import DjangoJSONEncoder
from django.dispatch import receiver
from typing import Tuple
from pretix.base.signals import register_data_exporters
@@ -60,7 +61,7 @@ class BaseExporter:
"""
return {}
def render(self, form_data: dict) -> tuple:
def render(self, form_data: dict) -> Tuple[str, str, str]:
"""
Render the exported file and return a tuple consisting of a filename, a file type
and file content.