-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Mypy fix rotation.py #4319
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
Mypy fix rotation.py #4319
Conversation
This reverts commit c2d04ae.
I reverted the changes to build.yml since this file being changed by another pull request, leading to a merge conflict. |
@@ -1,11 +1,12 @@ | |||
import cv2 | |||
import numpy as np | |||
from matplotlib import pyplot as plt | |||
import os.path |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use https://docs.python.org/3/library/pathlib.html instead of os.path for improved readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
from pathlib import Path
Path(__file__).resolve().parent / "image_data" / "lena.jpg"
Please rebase onto the latest master and remove the directory from $ git remote add upstream https://github.com/TheAlgorithms/Python
$ git fetch upstream master
$ git merge upstream/master
$ git rebase master mypy-fix-rotation.py |
* feat: Add mypy config file * refactor: Remove mypy options from build workflow * Remove linear_algebra Co-authored-by: Christian Clauss <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makin' mypy progress...
* fix type-hints arguments * fix matrices & image-path * Update build.yml * Revert "Update build.yml" This reverts commit c2d04ae. * use pathlib * feat: Add mypy configuration file (TheAlgorithms#4315) * feat: Add mypy config file * refactor: Remove mypy options from build workflow * Remove linear_algebra Co-authored-by: Christian Clauss <[email protected]> * rebase & update mypy.ini * fix pre-commit errors Co-authored-by: Dhruv Manilawala <[email protected]> Co-authored-by: Christian Clauss <[email protected]>
* fix type-hints arguments * fix matrices & image-path * Update build.yml * Revert "Update build.yml" This reverts commit c2d04ae. * use pathlib * feat: Add mypy configuration file (TheAlgorithms#4315) * feat: Add mypy config file * refactor: Remove mypy options from build workflow * Remove linear_algebra Co-authored-by: Christian Clauss <[email protected]> * rebase & update mypy.ini * fix pre-commit errors Co-authored-by: Dhruv Manilawala <[email protected]> Co-authored-by: Christian Clauss <[email protected]>
Describe your change:
Related Issue: #4052
Checklist:
Fixes: #{$ISSUE_NO}
.