Skip to content

Commit

Permalink
Fix: typing_extensions import causing issues (#188)
Browse files Browse the repository at this point in the history
* Bugfix for corrections handling

* Move typing_extensions import to TYPE_CHECKING block

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
kavanase and pre-commit-ci[bot] committed May 9, 2024
1 parent b10a0ec commit 8e6a8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymatgen/analysis/defects/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
from pymatgen.core import Element, PeriodicSite, Species
from pymatgen.core.periodic_table import DummySpecies
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer
from typing_extensions import Self

from .utils import get_plane_spacing

if TYPE_CHECKING:
from numpy.typing import ArrayLike
from pymatgen.core import Structure
from pymatgen.symmetry.structure import SymmetrizedStructure
from typing_extensions import Self

# TODO Possible redesign idea: ``DefectSite`` class defined with a defect object.
# This makes some of the accounting logic a bit harder since we will probably
Expand Down

0 comments on commit 8e6a8de

Please sign in to comment.