Skip to content
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

Fix type annotations in pandas.core.computation #26295

Merged
merged 7 commits into from
May 8, 2019

Conversation

gwrome
Copy link
Contributor

@gwrome gwrome commented May 6, 2019

@@ -166,7 +166,8 @@ def __init__(self, value, env, side=None, encoding=None):
def _resolve_name(self):
return self._name

@property
# read-only property overwriting read/write
@property # type: ignore
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Handling these as here

@codecov
Copy link

codecov bot commented May 6, 2019

Codecov Report

Merging #26295 into master will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26295      +/-   ##
==========================================
- Coverage   92.04%   92.04%   -0.01%     
==========================================
  Files         175      175              
  Lines       52302    52301       -1     
==========================================
- Hits        48142    48138       -4     
- Misses       4160     4163       +3
Flag Coverage Δ
#multiple 90.59% <100%> (ø) ⬆️
#single 40.75% <100%> (-0.15%) ⬇️
Impacted Files Coverage Δ
pandas/core/computation/ops.py 95.95% <ø> (+0.33%) ⬆️
pandas/core/computation/pytables.py 90.24% <100%> (ø) ⬆️
pandas/core/computation/expr.py 96.71% <100%> (ø) ⬆️
pandas/io/gbq.py 78.94% <0%> (-10.53%) ⬇️
pandas/core/frame.py 97.01% <0%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 20fa58d...2061229. Read the comment docs.

@jreback jreback added the Typing type annotations, mypy/pyright type checking label May 7, 2019
@jreback jreback added this to the 0.25.0 milestone May 7, 2019
@jreback
Copy link
Contributor

jreback commented May 7, 2019

can you merge master; @WillAyd

@@ -166,7 +166,8 @@ def __init__(self, value, env, side=None, encoding=None):
def _resolve_name(self):
return self._name

@property
# read-only property overwriting read/write
@property # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

Could we just remove the setters from the base class or are they actually used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can remove the name setter, but removing the the value setter flunks a whole mess of tests. Will push a commit with the former and its accompanying type comment removed. Merging master while I'm at it.

@WillAyd WillAyd merged commit 0f220d4 into pandas-dev:master May 8, 2019
@WillAyd
Copy link
Member

WillAyd commented May 8, 2019

Thanks @gwrome ! Very nice progress on all of these typing PRs

@gwrome gwrome deleted the blacklist-computation branch May 8, 2019 12:34
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.

Fix type annotations in pandas.core.computation
3 participants