Skip to content

Commit

Permalink
Add google.protobuf.runtime_version
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam committed Dec 1, 2024
1 parent 0a2da01 commit c70ba37
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions stubs/protobuf/google/protobuf/runtime_version.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from enum import Enum
from typing import Final, Literal

class Domain(Enum):
GOOGLE_INTERNAL = 1
PUBLIC = 2

OSS_DOMAIN: Final[Literal[Domain.PUBLIC]]
OSS_MAJOR: Final = 5
OSS_MINOR: Final = 28
OSS_PATCH: Final = 3
OSS_SUFFIX: Final = ""
DOMAIN: Final[Literal[Domain.PUBLIC]]
MAJOR: Final = OSS_MAJOR
MINOR: Final = OSS_MINOR
PATCH: Final = OSS_PATCH
SUFFIX: Final = OSS_SUFFIX

class VersionError(Exception): ...

def ValidateProtobufRuntimeVersion(
gen_domain: Domain, gen_major: int, gen_minor: int, gen_patch: int, gen_suffix: str, location: str
) -> None: ...

0 comments on commit c70ba37

Please sign in to comment.