Skip to content

Commit

Permalink
fix: use python3.8 syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jorwoods committed Jan 24, 2024
1 parent 5611859 commit 8ad3c03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tableauserverclient/models/property_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import datetime
import re
from functools import wraps
from typing import Any, Optional
from typing import Any, Optional, Tuple

from tableauserverclient.datetime_helpers import parse_datetime

Expand Down Expand Up @@ -67,7 +67,7 @@ def wrapper(self, value):
return wrapper


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

0 comments on commit 8ad3c03

Please sign in to comment.