8000 fix: use python3.8 syntax · cbini/server-client-python@8ad3c03 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ad3c03

Browse files
committed
fix: use python3.8 syntax
1 parent 5611859 commit 8ad3c03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tableauserverclient/models/property_decorators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import datetime
33
import re
44
from functools import wraps
5-
from typing import Any, Optional
5+
from typing import Any, Optional, Tuple
66

77
from tableauserverclient.datetime_helpers import parse_datetime
88

@@ -67,7 +67,7 @@ def wrapper(self, value):
6767
return wrapper
6868

6969

70-
def property_is_int(range: tuple[int, int], allowed: Optional[Container[Any]] = None):
70+
def property_is_int(range: Tuple[int, int], allowed: Optional[Container[Any]] = None):
7171
"""Takes a range of ints and a list of exemptions to check against
7272
when setting a property on a model. The range is a tuple of (min, max) and the
7373
allowed list (empty by default) allows values outside that range.

0 commit comments

Comments
 (0)
0