Skip to content

TYP: maybe_get_tz #35103

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 3 commits into from
Jul 8, 2020
Merged

TYP: maybe_get_tz #35103

merged 3 commits into from
Jul 8, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@gfyoung gfyoung added the Typing type annotations, mypy/pyright type checking label Jul 3, 2020
@@ -102,6 +102,12 @@ cpdef inline object maybe_get_tz(object tz):
tz = pytz.timezone(tz)
elif is_integer_object(tz):
tz = pytz.FixedOffset(tz / 60)
elif isinstance(tz, tzinfo):
pass
elif tz is None:
Copy link
Member

Choose a reason for hiding this comment

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

Do we have dedicated tests for these last 2 cases?

@jreback jreback added the Timezones Timezone data dtype label Jul 7, 2020
@jreback jreback added this to the 1.1 milestone Jul 8, 2020
@jreback jreback merged commit ebca2a6 into pandas-dev:master Jul 8, 2020
@jbrockmendel jbrockmendel deleted the typ-maybe_get_tz branch July 8, 2020 22:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Timezones Timezone data dtype Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants