Skip to content

Commit

Permalink
Only import Self if type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarbenjamin committed Nov 6, 2024
1 parent 595422d commit 3e39970
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/protosym/core/sym.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@

from __future__ import annotations

from typing import Any, Callable, Generic, Self, Sequence, TypeVar, overload
from typing import TYPE_CHECKING as _TYPE_CHECKING
from typing import Any, Callable, Generic, Sequence, TypeVar, overload

if _TYPE_CHECKING:
from typing_extensions import Self

from weakref import WeakValueDictionary as _WeakDict

from protosym.core.atom import AtomType
Expand Down

0 comments on commit 3e39970

Please # to comment.