-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
SyntaxWarning: "is" with a literal. Did you mean "=="? #728
Comments
Hi, flake8 is not integrated into the package itself, it is just check code for each commit in CI/CD GitHub actions |
I guess it might be a native python warning that has been introduced in 3.9 |
This is an issue stemming from the dependency on the I'm not too sure of how easy it would be to drop this dependency, as I'm not familiar with this repository's codebase, but I'd be willing to help out |
This would be not so easy to drop, but the warning could be just caught with |
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
@qubvel Any progress on this? |
@rusmux What version of segmentation_models_pytorch are you running? I can't seem to reproduce the issue with the latest version (0.3.3) |
Yeah, sorry, seems like I was using outdated version |
Hi all!
If I install python>=3.8.1 and segmentation-models-pytorch==0.32.2, then an warning occurs on import
import segmentation_models_pytorch as smp
. The warning appears in librarypretrainedmodels
.The warning disappears when I install python 3.7.5.
In segmentation version 0.3.1 updated
Codebase refactoring and style checks (black, flake8)
. I think the problem is in the flake8. And in python 3.7.5. maybe flake8 is being ignored.Is there a way to disable flake8? To turn off the warning python >= 3.8.
The text was updated successfully, but these errors were encountered: