Silence protobuf warning
This commit is contained in:
parent
7069b70dd4
commit
04b4ee24eb
@ -1,13 +1,23 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
|
import warnings
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from frozendict import frozendict
|
from frozendict import frozendict
|
||||||
|
|
||||||
from ..value_types import QEnum
|
from ..value_types import QEnum
|
||||||
|
|
||||||
|
with warnings.catch_warnings():
|
||||||
|
warnings.filterwarnings(
|
||||||
|
"ignore",
|
||||||
|
"Protobuf gencode version",
|
||||||
|
UserWarning,
|
||||||
|
"google.protobuf.runtime_version",
|
||||||
|
)
|
||||||
from . import qube_pb2
|
from . import qube_pb2
|
||||||
|
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from ..Qube import Qube
|
from ..Qube import Qube
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user