Skip to content

TYP: add some types to pandas/io/parquet.py #29972

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 1 commit into from
Dec 2, 2019

Conversation

simonjayhawkins
Copy link
Member

broken off #28339

@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Dec 2, 2019
Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@WillAyd WillAyd added this to the 1.0 milestone Dec 2, 2019

class BaseImpl:

api = None # module
Copy link
Member

Choose a reason for hiding this comment

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

this is just unused?

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 doesn't appear to be necessary to be declared here. not used by the BaseImpl methods so not technically a mandatory property.

mypy errors were

pandas\io\parquet.py:101: error: "None" has no attribute "Table"
pandas\io\parquet.py:103: error: "None" has no attribute "parquet"
pandas\io\parquet.py:112: error: "None" has no attribute "parquet"

@jbrockmendel
Copy link
Member

small question, otherwise LGTM

@jreback jreback merged commit e341df2 into pandas-dev:master Dec 2, 2019
@jreback
Copy link
Contributor

jreback commented Dec 2, 2019

thanks @simonjayhawkins

@simonjayhawkins simonjayhawkins deleted the pandas/io/parquet.py branch December 3, 2019 12:41
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