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

REFACTOR-#7242: Add type hints for modin/core/dataframe/algebra/ #7243

Merged
merged 4 commits into from
May 13, 2024

Conversation

anmyachev
Copy link
Collaborator

@anmyachev anmyachev commented May 7, 2024

What do these changes do?

  • first commit message and PR title follow format outlined here

    NOTE: If you edit the PR title to match this format, you need to add another commit (even if it's empty) or amend your last commit for the CI job that checks the PR title to pick up the new PR title.

  • passes flake8 modin/ asv_bench/benchmarks scripts/doc_checker.py
  • passes black --check modin/ asv_bench/benchmarks scripts/doc_checker.py
  • signed commit with git commit -s
  • Resolves Add type hints for modin/core/dataframe/algebra/ #7242
  • tests added and passing
  • module layout described at docs/development/architecture.rst is up-to-date

@anmyachev anmyachev force-pushed the issue7242 branch 2 times, most recently from 91543e8 to 130f489 Compare May 7, 2024 22:06
@anmyachev anmyachev marked this pull request as ready for review May 7, 2024 22:25
modin/core/dataframe/algebra/binary.py Show resolved Hide resolved
groupby_kwargs: dict,
agg_args: list,
agg_kwargs: dict,
other: Optional[pandas.DataFrame] = None,
by=None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this untouched?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Some arguments are very complex in terms of the types they accept. I leave them untouched, because for now I am trying to improve code navigation with the least effort, so as not to spend a lot of time on it and be able to do it as I work on another task (but in the same place in the code).

modin/core/dataframe/algebra/groupby.py Show resolved Hide resolved
@@ -50,6 +52,10 @@

from . import doc_utils

if TYPE_CHECKING:
# TODO: should be ModinDataframe
Copy link
Collaborator

Choose a reason for hiding this comment

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

When is this going to be fixed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Signed-off-by: Anatoly Myachev <[email protected]>
Signed-off-by: Anatoly Myachev <[email protected]>
@anmyachev
Copy link
Collaborator Author

@YarShev ready for review

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.

Add type hints for modin/core/dataframe/algebra/
2 participants