Skip to content

Commit

Permalink
minor improvement to typing of template_align
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelML committed Mar 22, 2022
1 parent 42a2c9f commit 8312c0e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions datamol/align.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Optional
from typing import Union
from typing import Iterable
from typing import Sequence

from packaging import version
Expand Down Expand Up @@ -40,7 +39,7 @@ def template_align(
use_depiction: bool = True,
remove_confs: bool = True,
auto_select_coord_gen: bool = False,
):
) -> Union[None, Mol]:
"""Align an input molecule to a template. If the template is not provided then the input molecule is
returned.
Expand All @@ -56,7 +55,7 @@ def template_align(
auto_select_coord_gen: Whether to automatically select the coordinate generation method.
Returns:
mol: aligned molecule.
mol: aligned molecule. None if initial mol argument is undefined.
"""

if isinstance(mol, str):
Expand Down

0 comments on commit 8312c0e

Please sign in to comment.