Skip to content

Commit

Permalink
Merge pull request #138 from dolfin-adjoint/dolci/working_python38
Browse files Browse the repository at this point in the history
Remove hint that is not working for python3.8
  • Loading branch information
jorgensd authored Feb 27, 2024
2 parents d752d79 + 72cb31c commit 029a154
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pyadjoint/tape.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@
from contextlib import contextmanager
from functools import wraps
from itertools import chain
from typing import Optional, Iterable
from abc import ABC, abstractmethod
from typing import Optional
from collections.abc import Iterable
from .checkpointing import CheckpointManager, CheckpointError

_working_tape = None
Expand Down Expand Up @@ -770,6 +769,14 @@ class TimeStepSequence(list):
This behaves like a list of blocks. To access a list of the timesteps, use
the :attr:`steps` property.
Args:
blocks (list[Block] or TimeStepSequence, optional): If provided, `blocks` can be a list of :class:`Block`
or another TimeStepSequence to copy from.
steps (list[TimeStep], optional): If provided, `steps` should be a list of :class:`TimeStep` to copy from.
Attributes:
steps (list[TimeStep]): A list of timesteps.
"""

def __init__(self, blocks=None, steps: Optional[Iterable[Iterable[TimeStep]]] = None):
Expand Down

0 comments on commit 029a154

Please sign in to comment.