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

Skip to content

Commit a7b5e2c

Browse files
committed
fix: python3.8 syntax
1 parent 7dc5ad4 commit a7b5e2c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tableauserverclient/server/pager.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
from collections.abc import Iterable, Iterator
21
import copy
32
from functools import partial
4-
from typing import List, Optional, Protocol, Tuple, TypeVar, Union, runtime_checkable
3+
from typing import Iterable, Iterator, List, Optional, Protocol, Tuple, TypeVar, Union, runtime_checkable
54

65
from tableauserverclient.models.pagination_item import PaginationItem
76
from tableauserverclient.server.request_options import RequestOptions

test/test_pager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ def test_pager_view(self) -> None:
119119
with open(GET_VIEW_XML, "rb") as f:
120120
view_xml = f.read().decode("utf-8")
121121
with requests_mock.mock() as m:
122-
m.get(self.baseurl, text=view_xml)
122+
m.get(self.server.views.baseurl, text=view_xml)
123123
for view in TSC.Pager(self.server.views):
124-
assert view.name == "Test View"
124+
assert view.name is not None

0 commit comments

Comments
 (0)
0