Skip to content

Commit

Permalink
Fix type hints for old python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
nnn911 committed Mar 8, 2024
1 parent 08365ce commit 5972017
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AlignMolecule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# Align a molecule using Kabsch algorithm.
# https://en.wikipedia.org/wiki/Kabsch_algorithm

import platform

if tuple(int(v) for v in platform.python_version_tuple()) <= (3, 8):
from __future__ import annotations # noqa: F404
from __future__ import annotations

from ovito.data import DataCollection
from ovito.modifiers import AffineTransformationModifier
Expand Down

0 comments on commit 5972017

Please sign in to comment.