analytics: Change use of typing.Text to str.

This commit is contained in:
Aditya Bansal
2018-05-10 22:05:50 +05:30
committed by Tim Abbott
parent fc6833e46a
commit 5adf983c3c
5 changed files with 22 additions and 22 deletions

View File

@@ -3,7 +3,7 @@ from collections import OrderedDict, defaultdict
from datetime import datetime, timedelta
import logging
from typing import Any, Callable, Dict, List, \
Optional, Text, Tuple, Type, Union
Optional, Tuple, Type, Union
from django.conf import settings
from django.db import connection, models
@@ -48,7 +48,7 @@ class CountStat:
else: # frequency == CountStat.DAY
self.interval = timedelta(days=1)
def __str__(self) -> Text:
def __str__(self) -> str:
return "<CountStat: %s>" % (self.property,)
class LoggingCountStat(CountStat):