Skip to content

Commit

Permalink
Make regex more restrictive to the specific minor version numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmith023 committed Sep 13, 2024
1 parent e670cf5 commit 624e2e2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions weaviate/proto/v1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import warnings

warnings.filterwarnings("ignore", ".*obsolete", UserWarning, "google.protobuf.runtime_version")
# copied from https://github.com/grpc/grpc/issues/37609#issuecomment-2328376837 to handle https://github.com/protocolbuffers/protobuf/pull/17241
warnings.filterwarnings(
"ignore",
r"(?=.*5\.27\.\d+)(?=.*5\.28\.\d+)(?=.*obsolete)",
UserWarning,
"google.protobuf.runtime_version",
)
# ref: https://github.com/grpc/grpc/issues/37609 and https://github.com/protocolbuffers/protobuf/pull/17241

0 comments on commit 624e2e2

Please sign in to comment.