Skip to content

TYP: io.pytables annotations #29861

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

Merged
merged 10 commits into from
Nov 29, 2019
Merged

Conversation

jbrockmendel
Copy link
Member

No description provided.

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Nov 26, 2019
@simonjayhawkins simonjayhawkins added this to the 1.0 milestone Nov 26, 2019
@jbrockmendel
Copy link
Member Author

updated with a few more annotations broken off from other branches

@simonjayhawkins
Copy link
Member

@jbrockmendel can you resolve conflicts

@jbrockmendel
Copy link
Member Author

rebased+green

self, parent: HDFStore, group: "Node", encoding=None, errors="strict", **kwargs
):
assert isinstance(parent, HDFStore), type(parent)
assert _table_mod is not None # needed for mypy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this not have any impact on runtime? The global state management here is a little nuanced so just want to double check that it is valid to add to the constructor here, as on first glance it may not be set until methods are called by design

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not, we wouldn't get here if _table_mod were not initialized

@jreback jreback merged commit 273dd40 into pandas-dev:master Nov 29, 2019
@jreback
Copy link
Contributor

jreback commented Nov 29, 2019

thanks

@jbrockmendel jbrockmendel deleted the cln-pytables-types branch November 29, 2019 23:27
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants