Skip to content

Commit

Permalink
USE TYPE_CHECKING
Browse files Browse the repository at this point in the history
  • Loading branch information
lan496 committed Feb 3, 2024
1 parent 2f33d98 commit 43027d2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/spglib/spglib.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@
from __future__ import annotations

import warnings
from collections.abc import Sequence
from typing import TYPE_CHECKING

import numpy as np
from typing_extensions import TypeAlias

if TYPE_CHECKING:
from collections.abc import Sequence

from typing_extensions import TypeAlias

try:
from spglib import _spglib as spg # type: ignore[attr-defined]
Expand Down

0 comments on commit 43027d2

Please sign in to comment.