Skip to content

Commit

Permalink
Change typing to work with Python 3.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtarzia committed Sep 25, 2024
1 parent 908229c commit a956a02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/chemiscope/structures/_stk.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import typing
from collections import Counter

try:
Expand All @@ -9,7 +10,7 @@


def _stk_valid_structures(
frames: stk.Molecule | list[stk.Molecule],
frames: typing.Union(stk.Molecule, list[stk.Molecule]),
) -> tuple[list[stk.Molecule], bool]:
if HAVE_STK and isinstance(frames, stk.Molecule):
# deal with the user passing a single frame
Expand Down

0 comments on commit a956a02

Please sign in to comment.