Skip to content

check compatibility with ABC module #135

@PythonFZ

Description

@PythonFZ

use an ABC mixing like

class DynamicsMixin(abc.ABC):

    @property
    @abc.abstractmethod
    def timestep(self) -> float: ...

    @property
    @abc.abstractmethod
    def sampling_rate(self) -> int: ...

and then a dataclass class(znflow.Node, DynamicsMixin) that does not overwrite the abc methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions