Skip to content

Commit

Permalink
Merge pull request #19 from ecrl/20250122_typehints
Browse files Browse the repository at this point in the history
Update type hints
  • Loading branch information
tjkessler authored Jan 23, 2025
2 parents 3030031 + ab0fe77 commit c1d0091
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions graphchem/preprocessing/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@


def get_ring_size(
obj: Union[rdkit.Chem.Atom, rdkit.Chem.Bond],
obj: Union["rdkit.Chem.Atom", "rdkit.Chem.Bond"],
max_size: Optional[int] = 12
) -> int:
"""
Expand Down Expand Up @@ -35,7 +35,7 @@ def get_ring_size(
return max_size


def atom_to_str(atom: rdkit.Chem.Atom) -> str:
def atom_to_str(atom: "rdkit.Chem.Atom") -> str:
"""
Convert an RDKit Atom object to a string representation.
Expand Down Expand Up @@ -82,7 +82,7 @@ def atom_to_str(atom: rdkit.Chem.Atom) -> str:
))


def bond_to_str(bond: rdkit.Chem.Bond) -> str:
def bond_to_str(bond: "rdkit.Chem.Bond") -> str:
"""
Convert an RDKit Bond object to a string representation.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include-package-data = true

[project]
name = "graphchem"
version = "2.3.1"
version = "2.3.2"
authors = [
{ name="Travis Kessler", email="[email protected]" },
]
Expand Down

0 comments on commit c1d0091

Please sign in to comment.