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

CLN: tslibs typing, avoid private funcs #34195

Merged
merged 5 commits into from
May 20, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

Copy link
Member

@jorisvandenbossche jorisvandenbossche left a comment

Choose a reason for hiding this comment

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

Generally looks good, just two small comments

@@ -2194,7 +2194,7 @@ cdef class _Period(ABCPeriod):
return (Period, object_state)

def strftime(self, fmt: str) -> str:
"""
r"""
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason this is needed? (the docs seem to render fine: https://pandas.pydata.org/docs/dev/reference/api/pandas.Period.strftime.html#pandas.Period.strftime)

Copy link
Member Author

Choose a reason for hiding this comment

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

there are \( in there that are invalid escapes

Copy link
Member

@jorisvandenbossche jorisvandenbossche May 15, 2020

Choose a reason for hiding this comment

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

It might be needed for sphinx (no idea), because as shown, it renders good. Did you check that it still renders fine with this change?

Copy link
Member

Choose a reason for hiding this comment

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

I suppose this is copied from the stdlib docs, and there those escape is also used: https://raw.githubusercontent.com/python/cpython/3.8/Doc/library/datetime.rst

Copy link
Member Author

Choose a reason for hiding this comment

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

I mainly notice this because the syntax highlighter (sublime text) marks it

Copy link
Member Author

Choose a reason for hiding this comment

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

@jorisvandenbossche do you feel strongly that this should be reverted? i care about this less than the rest of the PR, so would be OK with that

Copy link
Member

Choose a reason for hiding this comment

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

I don't care about whether this should be reverted or not, but if you change it, you need to build the docs to check that it actually works (because just based on guessing, I wouldn't know whether this change is correct or not)

pandas/_libs/tslibs/timezones.pyx Show resolved Hide resolved
@jreback jreback added this to the 1.1 milestone May 17, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm.

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.

@@ -2194,7 +2194,7 @@ cdef class _Period(ABCPeriod):
return (Period, object_state)

def strftime(self, fmt: str) -> str:
"""
r"""
Copy link
Member

Choose a reason for hiding this comment

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

I don't care about whether this should be reverted or not, but if you change it, you need to build the docs to check that it actually works (because just based on guessing, I wouldn't know whether this change is correct or not)

@jbrockmendel
Copy link
Member Author

Reverted the "r"; test failure is in feather

@jbrockmendel
Copy link
Member Author

updated+green

@jreback jreback merged commit f89ce8c into pandas-dev:master May 20, 2020
@jbrockmendel jbrockmendel deleted the cln-tslibs branch May 20, 2020 15:15
PuneethaPai pushed a commit to PuneethaPai/pandas that referenced this pull request May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants