-
Notifications
You must be signed in to change notification settings - Fork 880
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
2023.9.6 duplicate "self" argument in rdfiltercatalog/__init__.pyi
#7401
Comments
Thanks for reporting. Automated stub generation with C++ Python wrappers is tricky. I'll fix that. |
I have a similar issue with |
I've been having the same issues, so far pinning to |
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.
@ptosco Any updates on this? I'm facing the same issue as @lukasturcani |
FWIW I've changed
|
Apologies, I have had very little time for RDKit lately; I’ll try to get this fixed for the next patch release. |
Thanks @ptosco! Appreciate the help! 💯 |
The same problem exist in RDKit 2024.3.5 but in the file def __init__(self, self: typing.Any, name: str, version: str) -> None:
"""
C++ signature :
void __init__(_object*,_object*,std::string,std::string)
""" there is 2 def __init__(self: typing.Any, name: str, version: str) -> None:
"""
C++ signature :
void __init__(_object*,_object*,std::string,std::string)
""" |
maybe related to this one: #7554 |
Yes, they are both showing the same problem, just in different files. I posted in both, because the incriminated file was mentionned ion both. And I'm not sure which one is really active. |
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: