Silence protobuf warning
This commit is contained in:
parent
7069b70dd4
commit
04b4ee24eb
@ -1,13 +1,23 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import warnings
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
import numpy as np
|
||||
from frozendict import frozendict
|
||||
|
||||
from ..value_types import QEnum
|
||||
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user