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

[BUG] address issue #1201 #1203

Merged
merged 11 commits into from
Nov 27, 2022
Merged

Conversation

xujiboy
Copy link
Contributor

@xujiboy xujiboy commented Nov 19, 2022

PR Description

Please describe the changes proposed in the pull request:

This PR resolves #(put issue number here, and remove parentheses).

PR Checklist

Please ensure that you have done the following:

  1. PR in from a fork off your branch. Do not PR from <your_username>:dev, but rather from <your_username>:<feature-branch_name>.
  1. If you're not on the contributors list, add yourself to AUTHORS.md.
  1. Add a line to CHANGELOG.md under the latest version header (i.e. the one that is "on deck") describing the contribution.
    • Do use some discretion here; if there are multiple PRs that are related, keep them in a single line.

Automatic checks

There will be automatic checks run on the PR. These include:

  • Building a preview of the docs on Netlify
  • Automatically linting the code
  • Making sure the code is documented
  • Making sure that all tests are passed
  • Making sure that code coverage doesn't go down.

Relevant Reviewers

Please tag maintainers to review.

@codecov
Copy link

codecov bot commented Nov 19, 2022

Codecov Report

Merging #1203 (33afc96) into dev (634093f) will decrease coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev    #1203      +/-   ##
==========================================
- Coverage   98.04%   97.98%   -0.06%     
==========================================
  Files          76       76              
  Lines        3522     3524       +2     
==========================================
  Hits         3453     3453              
- Misses         69       71       +2     

@samukweku
Copy link
Collaborator

@Zeroto521 thoughts?

Copy link
Member

@ericmjl ericmjl left a comment

Choose a reason for hiding this comment

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

@samukweku do you remember if we are standardizing on built-in types or typing module types?

If we are using built-in types, then this PR may not be necessary. However, if we want compatibility with previous versions of python, then using built-in typing library types might be what we want to do.

@Zeroto521
Copy link
Member

To compat py3.8 just add from __future__ import annotations at the top line.
For lower python versions, there requires the typing package.

@Zeroto521
Copy link
Member

Zeroto521 commented Nov 19, 2022

I more care about the reason why #1143 PR's py3.8 env didn't raise the error.

Originally posted by @Zeroto521 in #1143 (comment)

@samukweku
Copy link
Collaborator

@ericmjl not really. @Zeroto521 suggestion makes sense. Although I wonder why it didn't raise error as well during @Zeroto521 tests in #1143 . Wonder what is missing

@ericmjl
Copy link
Member

ericmjl commented Nov 24, 2022

@xujiboy I just resolved the conflicts here. Let's see what happens with the test coverage.

@ericmjl
Copy link
Member

ericmjl commented Nov 24, 2022

@Zeroto521 question, do you think we should adopt an official "supported Python versions" policy? We could follow something like NumPy's or pandas' official policy for supported Python versions.

@ericmjl
Copy link
Member

ericmjl commented Nov 24, 2022

Oh, @xujiboy I just realized that this PR is a duplicate of another PR: #1202.

Because this PR has been reviewed more extensively and already has the changelog line inside it, I think we should keep this one open. That said, I would like to credit both you and @joranbeasley in the changelog here for taking the effort to make a PR that solves the issue outlined in #1201.

@ericmjl ericmjl mentioned this pull request Nov 24, 2022
3 tasks
@ericmjl
Copy link
Member

ericmjl commented Nov 25, 2022

FYI I'm not worried about the minor decrease in test coverage, and we can safely merge if we get one other approval.

@xujiboy
Copy link
Contributor Author

xujiboy commented Nov 25, 2022

FYI I'm not worried about the minor decrease in test coverage, and we can safely merge if we get one other approval.

Thank you very much @ericmjl

@Zeroto521
Copy link
Member

Zeroto521 commented Nov 26, 2022

If we decide to merge this pr.

There have some other places that need to be updated.

  • janitor/utils.py
  • janitor/functions/conditional_join.py
  • janitor/functions/utils.py

Originally posted by @Zeroto521 in #1200 (comment)

@ericmjl
Copy link
Member

ericmjl commented Nov 27, 2022

I think we're good, b/c @samukweku has pushed code (which kind of constitutes an approval too!).

@Zeroto521 would you like to do the honors of merging?

@Zeroto521 Zeroto521 changed the title address issue #1201 [BUG] address issue #1201 Nov 27, 2022
@Zeroto521 Zeroto521 merged commit e31bac3 into pyjanitor-devs:dev Nov 27, 2022
@xujiboy xujiboy deleted the hot_fix_issue_1201 branch November 28, 2022 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants