Skip to content

Commit

Permalink
fixing typing import
Browse files Browse the repository at this point in the history
  • Loading branch information
atravitz committed Nov 14, 2024
1 parent e568ccf commit e773c1a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions gufe/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@

from typing import Generator, Iterable, Optional

# Self typing is supported in python 3.11+
try:
from typing import Self
except ImportError:
from typing_extensions import Self

import networkx as nx
from .tokenization import GufeTokenizable

from .chemicalsystem import ChemicalSystem
from .transformations import Transformation

# Self typing is supported in python 3.11+
try:
from typing import Self
except ImportError:
from __future__ import annotations


class AlchemicalNetwork(GufeTokenizable):
_edges: frozenset[Transformation]
Expand Down

0 comments on commit e773c1a

Please sign in to comment.