You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Upgrading to 2023.9.6 fails mypy in my pre-commit when importing FilterCatalogParams:
/home/jacobhucker/miniforge3/envs/min_rep_issue/lib/python3.11/site-packages/rdkit-stubs/Chem/rdfiltercatalog/__init__.pyi:671: error: Duplicate argument "self" in function definition
Found 1 error in 1 file (errors prevented further checking)
Viewing this file, self appears untyped and again typed:
from rdkit.Chem.rdfiltercatalog import FilterCatalogParams
if __name__ == "__main__":
_ = FilterCatalogParams()
Running mypy:
$ mypy .
/home/jacobhucker/miniforge3/envs/min_rep_issue/lib/python3.11/site-packages/rdkit-stubs/Chem/rdfiltercatalog/__init__.pyi:671: error: Duplicate argument "self" in function definition
Found 1 error in 1 file (errors prevented further checking)
Expected behavior
There should be no errors detected by mypy when scanning the above main.py example.
Configuration (please complete the following information):
RDKit version: 2023.9.6
OS: Pop!_OS 22.04 LTS
Python version (if relevant): 3.11.8
Are you using conda? In the minimal example yes, but this firstly originated when installing rdkit via poetry
If you are using conda, which channel did you install the rdkit from? as above
If you are not using conda: how did you install the RDKit? Via poetry 1.8.2
The text was updated successfully, but these errors were encountered:
I've been having the same issues, so far pinning to rdkit=2023.09.5 fixes it, which is okay since for now we only need to worry about this error when running mypy
Make ruff stricter and clean up doc strings throughout src and examples directories.
mypy fails due to issue with rdkit version: rdkit/rdkit#7401
We will wait till that is solved to fix.
Describe the bug
Upgrading to 2023.9.6 fails mypy in my pre-commit when importing
FilterCatalogParams
:Viewing this file, self appears untyped and again typed:
To Reproduce
Minimal conda environment yaml:
Minimal main.py:
Running mypy:
Expected behavior
There should be no errors detected by mypy when scanning the above main.py example.
Configuration (please complete the following information):
The text was updated successfully, but these errors were encountered: