Skip to content

Commit

Permalink
Add additional type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhorton committed Sep 16, 2019
1 parent a3522e2 commit 809b657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymatgen/analysis/magnetism/jahnteller.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
import warnings

from typing import Dict, Tuple, Union, Optional
from typing import Dict, Tuple, Union, Optional, Any

MODULE_DIR = os.path.dirname(os.path.abspath(__file__))

Expand Down Expand Up @@ -228,7 +228,7 @@ def trim(f):

# perform aggregation of all sites
if jt_sites:
analysis = {"active": True}
analysis = {"active": True} # type: Dict[str, Any]
# if any site could exhibit 'strong' Jahn-Teller effect
# then mark whole structure as strong
strong_magnitudes = [site["strength"] == "strong" for site in jt_sites]
Expand Down

0 comments on commit 809b657

Please sign in to comment.