mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Add more pyi patches, 2026-03 (#9214)
This commit is contained in:
10
Scripts/gen_rdkit_stubs/patch/rdkit/Chem/__init__.pyi.diff
Normal file
10
Scripts/gen_rdkit_stubs/patch/rdkit/Chem/__init__.pyi.diff
Normal 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
|
||||
20
Scripts/gen_rdkit_stubs/patch/rdkit/Chem/rdchem.pyi.diff
Normal file
20
Scripts/gen_rdkit_stubs/patch/rdkit/Chem/rdchem.pyi.diff
Normal 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
|
||||
"""
|
||||
Reference in New Issue
Block a user