Skip to content

Conversation

@jorwoods
Copy link
Contributor

Add type hints to schedule item and endpoint.

jorwoods and others added 13 commits January 27, 2022 21:58
commit b836f33
Author: Brian Cantoni <[email protected]>
Date:   Thu Jan 27 19:29:50 2022 -0800

    WIP: Enable Black for CI and add as dependency (tableau#935)

    * Enable Black for CI and add as dependency

    * Bulk reformat with Black, line length 120

    Co-authored-by: Jac Fitzgerald <[email protected]>
just make black do the formatting instead of watching it complain
fixing DailyInterval has no attribute 'interval'
mypy error:
tableauserverclient/server/endpoint/schedules_endpoint.py:118: error: Argument 1 to "append" of "list" has incompatible type "Tuple[DatasourceItem, str, Callable[[Optional[str], str], bytes]]"; expected "Tuple[WorkbookItem, str, Callable[[Optional[str], str], bytes]]"  [arg-type]
add back 'check'
@jacalata jacalata merged commit bb70890 into tableau:development Jan 28, 2022
@jorwoods jorwoods deleted the jorwoods/type_hint_schedules branch March 25, 2022 12:30
jacalata pushed a commit that referenced this pull request Mar 30, 2022
* Add type hints for schedules

* Squashed commit of the following:

commit b836f33
Author: Brian Cantoni <[email protected]>
Date:   Thu Jan 27 19:29:50 2022 -0800

    WIP: Enable Black for CI and add as dependency (#935)

    * Enable Black for CI and add as dependency

    * Bulk reformat with Black, line length 120

* Update interval_item.py

fixing DailyInterval has no attribute 'interval'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants