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 aff2dfb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions gufe/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
# For details, see https://github.com/OpenFreeEnergy/gufe

from typing import Generator, Iterable, Optional
from typing_extensions import Self # Self is included in typing as of python 3.11

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 aff2dfb

Please sign in to comment.