Skip to content

[WIP] Annotations to help mypy #3181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Misunderstood how to type hint functions for 2.7.
  • Loading branch information
rpgoldman committed Sep 3, 2018
commit 7c02859e16555bb9acabf4bf7f23dfc12e13a29f
3 changes: 2 additions & 1 deletion pymc3/backends/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@



def save_trace(trace: base.MultiTrace, directory: Optional[str]=None, overwrite=False) -> str:
def save_trace(trace, directory=None, overwrite=False):
# type: (base.MultiTrace, Optional[str], Optional[bool]) -> str
"""Save multitrace to file.

TODO: Also save warnings.
Expand Down