Skip to content

TYP: Annotations in core/indexes/ #30390

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 2 commits into from
Dec 21, 2019

Conversation

ShaharNaveh
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@ShaharNaveh ShaharNaveh marked this pull request as ready for review December 21, 2019 15:31
"""Return the dtype object of the underlying data"""
"""
Return the dtype object of the underlying data.
"""
Copy link
Member

Choose a reason for hiding this comment

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

IIRC docstrings that fit on a single line are allowed. I don't really have an opinion on this, but would much rather see you implement e.g. #28115 (not on the list i suggested previously) than this.

Copy link
Member Author

Choose a reason for hiding this comment

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

Gotta be honest, I have no clue where to start with.
And I really appreciate the fact you want me to be more involved, means a lot to me.

Copy link
Member

Choose a reason for hiding this comment

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

Gotta be honest, I have no clue where to start with.

I suggested #28115 because it is relatively straightforward as a stepping-stone. You would need to go to the pd.Timestamp class and define a fromisocalendar method on it that behaves just like the datetime.datetime version, but returning a Timestamp.

Copy link
Member Author

Choose a reason for hiding this comment

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

@jbrockmendel That's the exact lead I needed. thank you:)

@jbrockmendel
Copy link
Member

Just the one typo, ping on green

@ShaharNaveh
Copy link
Member Author

ping @jbrockmendel

@jbrockmendel jbrockmendel merged commit 477b2d5 into pandas-dev:master Dec 21, 2019
@jbrockmendel
Copy link
Member

Thanks @MomIsBestFriend

@jreback jreback added this to the 1.0 milestone Dec 21, 2019
@jreback jreback added the Code Style Code style, linting, code_checks label Dec 21, 2019
@ShaharNaveh ShaharNaveh deleted the TYP-core-indexes branch December 21, 2019 22:25
AlexKirko pushed a commit to AlexKirko/pandas that referenced this pull request Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Style Code style, linting, code_checks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants