diff --git a/docs/source/conf.py b/docs/source/conf.py index 73110f24..d4a72b27 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,5 @@ """Sphinx configuration file.""" + from __future__ import annotations import warnings diff --git a/src/mqt/qcec/__init__.py b/src/mqt/qcec/__init__.py index 1db4ca03..8ef93e78 100644 --- a/src/mqt/qcec/__init__.py +++ b/src/mqt/qcec/__init__.py @@ -3,6 +3,7 @@ This file is part of the MQT QCEC library released under the MIT license. See README.md or go to https://github.com/cda-tum/qcec for more information. """ + from __future__ import annotations from ._version import version as __version__ diff --git a/src/mqt/qcec/pyqcec/__init__.pyi b/src/mqt/qcec/pyqcec/__init__.pyi index f57d0cd9..79c3486d 100644 --- a/src/mqt/qcec/pyqcec/__init__.pyi +++ b/src/mqt/qcec/pyqcec/__init__.pyi @@ -19,7 +19,7 @@ class ApplicationScheme: def __eq__(self, other: object) -> bool: ... def __getstate__(self) -> int: ... def __hash__(self) -> int: ... - def __index__(self) -> int: ... # noqa: PLW3201 + def __index__(self) -> int: ... def __int__(self) -> int: ... def __ne__(self, other: object) -> bool: ... def __setstate__(self, state: int) -> None: ... @@ -150,7 +150,7 @@ class EquivalenceCriterion: def __eq__(self, other: object) -> bool: ... def __getstate__(self) -> int: ... def __hash__(self) -> int: ... - def __index__(self) -> int: ... # noqa: PLW3201 + def __index__(self) -> int: ... def __int__(self) -> int: ... def __ne__(self, other: object) -> bool: ... def __setstate__(self, state: int) -> None: ... @@ -171,7 +171,7 @@ class StateType: def __eq__(self, other: object) -> bool: ... def __getstate__(self) -> int: ... def __hash__(self) -> int: ... - def __index__(self) -> int: ... # noqa: PLW3201 + def __index__(self) -> int: ... def __int__(self) -> int: ... def __ne__(self, other: object) -> bool: ... def __setstate__(self, state: int) -> None: ... diff --git a/src/mqt/qcec/types.py b/src/mqt/qcec/types.py index 0ff60201..42245122 100644 --- a/src/mqt/qcec/types.py +++ b/src/mqt/qcec/types.py @@ -1,4 +1,5 @@ """Types for the QCEC module.""" + from __future__ import annotations from typing import Literal