8000 PEP 561 compliance for types (#992) · tableau/server-client-python@ea6d494 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea6d494

Browse files
jorwoodsjacalata
authored andcommitted
PEP 561 compliance for types (#992)
* PEP 561 compliance
1 parent 5682b8e commit ea6d494

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ recursive-include test *.tdsx
2121
recursive-include test *.twb
2222
recursive-include test *.twbx
2323
recursive-include test *.xml
24+
global-include *.pyi
25+
global-include *.typed

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
author='Tableau',
2525
author_email='github@tableau.com',
2626
url='https://github.com/tableau/server-client-python',
27+
package_data={'tableauserverclient':['py.typed']},
2728
packages=['tableauserverclient', 'tableauserverclient.models', 'tableauserverclient.server',
2829
'tableauserverclient.server.endpoint'],
2930
license='MIT',
@@ -39,5 +40,6 @@
3940
tests_require=test_requirements,
4041
extras_require={
4142
'test': test_requirements
42-
}
43+
},
44+
zip_safe=False
4345
)

tableauserverclient/py.typed

Whitespace-only changes.

test/test_regression_tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ def test_to_filename(self):
5252
def test_make_download_path(self):
5353
no_file_path = (None, "file.ext")
5454
has_file_path_folder = ("/root/folder/", "file.ext")
55-
has_file_path_file = ("out", "file.ext")
55+
has_file_path_file = ("outx", "file.ext")
5656

5757
self.assertEqual("file.ext", make_download_path(*no_file_path))
58-
self.assertEqual("out.ext", make_download_path(*has_file_path_file))
58+
self.assertEqual("outx.ext", make_download_path(*has_file_path_file))
5959

6060
with mock.patch("os.path.isdir") as mocked_isdir:
6161
mocked_isdir.return_value = True

0 commit comments

Comments
 (0)
0