diff --git a/src/python/qubed/protobuf/adapters.py b/src/python/qubed/protobuf/adapters.py index 6d4c020..287812b 100644 --- a/src/python/qubed/protobuf/adapters.py +++ b/src/python/qubed/protobuf/adapters.py @@ -1,12 +1,22 @@ from __future__ import annotations +import warnings from typing import TYPE_CHECKING import numpy as np from frozendict import frozendict from ..value_types import QEnum -from . import qube_pb2 + +with warnings.catch_warnings(): + warnings.filterwarnings( + "ignore", + "Protobuf gencode version", + UserWarning, + "google.protobuf.runtime_version", + ) + from . import qube_pb2 + if TYPE_CHECKING: from ..Qube import Qube