Add more pyi patches, 2026-03 (#9214)

This commit is contained in:
Yakov Pechersky
2026-04-06 05:51:49 -04:00
committed by GitHub
parent 9e301c15d6
commit 6c4411b1d1
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
--- a/rdkit/Chem/__init__.pyi
+++ b/rdkit/Chem/__init__.pyi
@@ -138,7 +138,7 @@
...
def _sizeCalc(self):
...
-def CanonSmiles(smi, useChiral = 1):
+def CanonSmiles(smi: str, useChiral: int = 1) -> str:
"""
A convenience function for canonicalizing SMILES

View File

@@ -0,0 +1,20 @@
--- a/rdkit/Chem/rdchem.pyi
+++ b/rdkit/Chem/rdchem.pyi
@@ -1988,7 +1988,7 @@
C++ signature :
RDKit::Atom* GetAtomWithIdx(RDKit::ROMol {lvalue},unsigned int)
"""
- def GetAtoms(self):
+ def GetAtoms(self) -> typing.Iterable[Atom]:
"""
returns an iterator over the atoms in the molecule
"""
@@ -2030,7 +2030,7 @@
C++ signature :
RDKit::Bond* GetBondWithIdx(RDKit::ROMol {lvalue},unsigned int)
"""
- def GetBonds(self):
+ def GetBonds(self) -> typing.Iterable[Bond]:
"""
returns an iterator over the bonds in the molecule
"""