From bdbc74b5545c14fffe46e7f2696e89b45f6cd8a2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 17:27:50 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20pre-commit=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/conf.py | 1 + src/mqt/qcec/__init__.py | 1 + src/mqt/qcec/pyqcec/__init__.pyi | 6 +++--- src/mqt/qcec/types.py | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) 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