Use variable annotations everywhere (#2909)

This commit is contained in:
Michael Lee
2019-04-13 01:40:52 -07:00
committed by Sebastian Rittau
parent b3c76aab49
commit efb67946f8
458 changed files with 9135 additions and 9135 deletions

View File

@@ -1,19 +1,19 @@
from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class AESCipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> AESCipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: int
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: int

View File

@@ -1,19 +1,19 @@
from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class RC2Cipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> RC2Cipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: int
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: int

View File

@@ -1,15 +1,15 @@
from typing import Any, Union, Text
__revision__ = ... # type: str
__revision__: str
class ARC4Cipher:
block_size = ... # type: int
key_size = ... # type: int
block_size: int
key_size: int
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def encrypt(self, plaintext): ...
def decrypt(self, ciphertext): ...
def new(key: Union[bytes, Text], *args, **kwargs) -> ARC4Cipher: ...
block_size = ... # type: int
key_size = ... # type: int
block_size: int
key_size: int

View File

@@ -1,19 +1,19 @@
from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class BlowfishCipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> BlowfishCipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: Any
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: Any

View File

@@ -1,19 +1,19 @@
from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class CAST128Cipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> CAST128Cipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: Any
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: Any

View File

@@ -1,19 +1,19 @@
from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class DESCipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> DESCipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: int
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: int

View File

@@ -2,19 +2,19 @@ from typing import Any, Union, Text
from .blockalgo import BlockAlgo
__revision__ = ... # type: str
__revision__: str
class DES3Cipher(BlockAlgo):
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def new(key: Union[bytes, Text], *args, **kwargs) -> DES3Cipher: ...
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
block_size = ... # type: int
key_size = ... # type: Any
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
block_size: int
key_size: Any

View File

@@ -6,7 +6,7 @@ class PKCS115_Cipher:
def __init__(self, key: _RSAobj) -> None: ...
def can_encrypt(self) -> bool: ...
def can_decrypt(self) -> bool: ...
rf = ... # type: Any
rf: Any
def encrypt(self, message: Union[bytes, Text]) -> bytes: ...
def decrypt(self, ct: bytes, sentinel: Any) -> bytes: ...

View File

@@ -1,10 +1,10 @@
from typing import Any, Union, Text
__revision__ = ... # type: str
__revision__: str
class XORCipher:
block_size = ... # type: int
key_size = ... # type: int
block_size: int
key_size: int
def __init__(self, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ...
def decrypt(self, ciphertext: bytes) -> bytes: ...
@@ -12,5 +12,5 @@ class XORCipher:
def new(key: Union[bytes, Text], *args, **kwargs) -> XORCipher: ...
block_size = ... # type: int
key_size = ... # type: int
block_size: int
key_size: int

View File

@@ -1,17 +1,17 @@
from typing import Any, Union, Text
MODE_ECB = ... # type: int
MODE_CBC = ... # type: int
MODE_CFB = ... # type: int
MODE_PGP = ... # type: int
MODE_OFB = ... # type: int
MODE_CTR = ... # type: int
MODE_OPENPGP = ... # type: int
MODE_ECB: int
MODE_CBC: int
MODE_CFB: int
MODE_PGP: int
MODE_OFB: int
MODE_CTR: int
MODE_OPENPGP: int
class BlockAlgo:
mode = ... # type: int
block_size = ... # type: int
IV = ... # type: Any
mode: int
block_size: int
IV: Any
def __init__(self, factory: Any, key: Union[bytes, Text], *args, **kwargs) -> None: ...
def encrypt(self, plaintext: Union[bytes, Text]) -> bytes: ...
def decrypt(self, ciphertext: bytes) -> bytes: ...

View File

@@ -1,12 +1,12 @@
from typing import Any, Optional
digest_size = ... # type: Any
digest_size: Any
class HMAC:
digest_size = ... # type: Any
digestmod = ... # type: Any
outer = ... # type: Any
inner = ... # type: Any
digest_size: Any
digestmod: Any
outer: Any
inner: Any
def __init__(self, key, msg: Optional[Any] = ..., digestmod: Optional[Any] = ...) -> None: ...
def update(self, msg): ...
def copy(self): ...

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class MD2Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class MD4Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class MD5Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class RIPEMD160Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA1Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA224Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA256Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA384Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -2,12 +2,12 @@ from typing import Any, Optional
from Crypto.Hash.hashalgo import HashAlgo
class SHA512Hash(HashAlgo):
oid = ... # type: Any
digest_size = ... # type: int
block_size = ... # type: int
oid: Any
digest_size: int
block_size: int
def __init__(self, data: Optional[Any] = ...) -> None: ...
def new(self, data: Optional[Any] = ...): ...
def new(data: Optional[Any] = ...): ...
digest_size = ... # type: Any
digest_size: Any

View File

@@ -1,8 +1,8 @@
from typing import Any, Optional
class HashAlgo:
digest_size = ... # type: Any
block_size = ... # type: Any
digest_size: Any
block_size: Any
def __init__(self, hashFactory, data: Optional[Any] = ...) -> None: ...
def update(self, data): ...
def digest(self): ...

View File

@@ -1,6 +1,6 @@
from typing import Any, Optional
__revision__ = ... # type: str
__revision__: str
def isInt(x): ...

View File

@@ -1,4 +1,4 @@
__revision__ = ... # type: str
__revision__: str
class Chaff:
def __init__(self, factor: float = ..., blocksper: int = ...) -> None: ...

View File

@@ -1,7 +1,7 @@
from typing import Any, Optional
from Crypto.Hash import SHA as SHA1
__revision__ = ... # type: str
__revision__: str
def PBKDF1(password, salt, dkLen, count: int = ..., hashAlgo: Optional[Any] = ...): ...
def PBKDF2(password, salt, dkLen: int = ..., count: int = ..., prf: Optional[Any] = ...): ...

View File

@@ -2,9 +2,9 @@ from typing import Any, Optional
from .pubkey import pubkey
class _DSAobj(pubkey):
keydata = ... # type: Any
implementation = ... # type: Any
key = ... # type: Any
keydata: Any
implementation: Any
key: Any
def __init__(self, implementation, key) -> None: ...
def __getattr__(self, attrname): ...
def sign(self, M, K): ...
@@ -17,11 +17,11 @@ class _DSAobj(pubkey):
def publickey(self): ...
class DSAImplementation:
error = ... # type: Any
error: Any
def __init__(self, **kwargs) -> None: ...
def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ...): ...
def construct(self, tup): ...
generate = ... # type: Any
construct = ... # type: Any
error = ... # type: Any
generate: Any
construct: Any
error: Any

View File

@@ -9,7 +9,7 @@ def generate(bits, randfunc, progress_func: Optional[Any] = ...): ...
def construct(tup): ...
class ElGamalobj(pubkey):
keydata = ... # type: Any
keydata: Any
def encrypt(self, plaintext, K): ...
def decrypt(self, ciphertext): ...
def sign(self, M, K): ...

View File

@@ -2,9 +2,9 @@ from typing import Any, Optional, Union, Text
from .pubkey import pubkey
class _RSAobj(pubkey):
keydata = ... # type: Any
implementation = ... # type: Any
key = ... # type: Any
keydata: Any
implementation: Any
key: Any
def __init__(self, implementation, key, randfunc: Optional[Any] = ...) -> None: ...
def __getattr__(self, attrname): ...
def encrypt(self, plaintext, K): ...
@@ -20,13 +20,13 @@ class _RSAobj(pubkey):
def exportKey(self, format: str = ..., passphrase: Optional[Any] = ..., pkcs: int = ...): ...
class RSAImplementation:
error = ... # type: Any
error: Any
def __init__(self, **kwargs) -> None: ...
def generate(self, bits, randfunc: Optional[Any] = ..., progress_func: Optional[Any] = ..., e: int = ...): ...
def construct(self, tup): ...
def importKey(self, externKey: Any, passphrase: Union[None, bytes, Text] = ...) -> _RSAobj: ...
generate = ... # type: Any
construct = ... # type: Any
importKey = ... # type: Any
error = ... # type: Any
generate: Any
construct: Any
importKey: Any
error: Any

View File

@@ -1,6 +1,6 @@
from Crypto.Util.number import * # noqa: F403
__revision__ = ... # type: str
__revision__: str
class pubkey:
def __init__(self) -> None: ...

View File

@@ -1,25 +1,25 @@
from typing import Any
__revision__ = ... # type: str
__revision__: str
class FortunaPool:
digest_size = ... # type: Any
digest_size: Any
def __init__(self) -> None: ...
def append(self, data): ...
def digest(self): ...
def hexdigest(self): ...
length = ... # type: int
length: int
def reset(self): ...
def which_pools(r): ...
class FortunaAccumulator:
min_pool_size = ... # type: int
reseed_interval = ... # type: float
reseed_count = ... # type: int
generator = ... # type: Any
last_reseed = ... # type: Any
pools = ... # type: Any
min_pool_size: int
reseed_interval: float
reseed_count: int
generator: Any
last_reseed: Any
pools: Any
def __init__(self) -> None: ...
def random_data(self, bytes): ...
def add_random_event(self, source_number, pool_number, data): ...

View File

@@ -1,16 +1,16 @@
from typing import Any
__revision__ = ... # type: str
__revision__: str
class AESGenerator:
block_size = ... # type: Any
key_size = ... # type: int
max_blocks_per_request = ... # type: Any
counter = ... # type: Any
key = ... # type: Any
block_size_shift = ... # type: Any
blocks_per_key = ... # type: Any
max_bytes_per_request = ... # type: Any
block_size: Any
key_size: int
max_blocks_per_request: Any
counter: Any
key: Any
block_size_shift: Any
blocks_per_key: Any
max_bytes_per_request: Any
def __init__(self) -> None: ...
def reseed(self, seed): ...
def pseudo_random_data(self, bytes): ...

View File

@@ -1,13 +1,13 @@
from typing import Any, Optional
class _SHAd256:
digest_size = ... # type: Any
digest_size: Any
def __init__(self, internal_api_check, sha256_hash_obj) -> None: ...
def copy(self): ...
def digest(self): ...
def hexdigest(self): ...
def update(self, data): ...
digest_size = ... # type: Any
digest_size: Any
def new(data: Optional[Any] = ...): ...

View File

@@ -1 +1 @@
__revision__ = ... # type: str
__revision__: str

View File

@@ -1,5 +1,5 @@
from .rng_base import BaseRNG
class PythonOSURandomRNG(BaseRNG):
name = ... # type: str
name: str
def __init__(self) -> None: ...

View File

@@ -2,5 +2,5 @@ from typing import Any, Optional
from .rng_base import BaseRNG
class DevURandomRNG(BaseRNG):
name = ... # type: str
name: str
def __init__(self, devname: Optional[Any] = ...) -> None: ...

View File

@@ -1,7 +1,7 @@
__revision__ = ... # type: str
__revision__: str
class BaseRNG:
closed = ... # type: bool
closed: bool
def __init__(self) -> None: ...
def __del__(self): ...
def __enter__(self): ...

View File

@@ -9,9 +9,9 @@ class StrongRandom:
def shuffle(self, x): ...
def sample(self, population, k): ...
getrandbits = ... # type: Any
randrange = ... # type: Any
randint = ... # type: Any
choice = ... # type: Any
shuffle = ... # type: Any
sample = ... # type: Any
getrandbits: Any
randrange: Any
randint: Any
choice: Any
shuffle: Any
sample: Any

View File

@@ -1,9 +1,9 @@
from typing import Any
__revision__ = ... # type: str
binary = ... # type: Any
__revision__: str
binary: Any
def key_to_english(key): ...
def english_to_key(s): ...
wordlist = ... # type: Any
wordlist: Any

View File

@@ -1,18 +1,18 @@
from typing import Any, Optional
class DerObject:
typeTags = ... # type: Any
typeTag = ... # type: Any
payload = ... # type: Any
typeTags: Any
typeTag: Any
payload: Any
def __init__(self, ASN1Type: Optional[Any] = ..., payload: Any = ...) -> None: ...
def isType(self, ASN1Type): ...
def encode(self): ...
def decode(self, derEle, noLeftOvers: int = ...): ...
class DerInteger(DerObject):
value = ... # type: Any
value: Any
def __init__(self, value: int = ...) -> None: ...
payload = ... # type: Any
payload: Any
def encode(self): ...
def decode(self, derEle, noLeftOvers: int = ...): ...
@@ -28,12 +28,12 @@ class DerSequence(DerObject):
def append(self, item): ...
def hasInts(self): ...
def hasOnlyInts(self): ...
payload = ... # type: Any
payload: Any
def encode(self): ...
def decode(self, derEle, noLeftOvers: int = ...): ...
class DerOctetString(DerObject):
payload = ... # type: Any
payload: Any
def __init__(self, value: Any = ...) -> None: ...
def decode(self, derEle, noLeftOvers: int = ...): ...

View File

@@ -1,8 +1,8 @@
from typing import Any, Optional
from warnings import warn as _warn
__revision__ = ... # type: str
bignum = ... # type: Any
__revision__: str
bignum: Any
def size(N): ...
def getRandomNumber(N, randfunc: Optional[Any] = ...): ...
@@ -19,4 +19,4 @@ def bytes_to_long(s): ...
def long2str(n, blocksize: int = ...): ...
def str2long(s): ...
sieve_base = ... # type: Any
sieve_base: Any

View File

@@ -1,11 +1,11 @@
from typing import Any, Optional
__revision__ = ... # type: str
__revision__: str
class RandomPool:
bytes = ... # type: Any
bits = ... # type: Any
entropy = ... # type: Any
bytes: Any
bits: Any
entropy: Any
def __init__(self, numbytes: int = ..., cipher: Optional[Any] = ..., hash: Optional[Any] = ..., file: Optional[Any] = ...) -> None: ...
def get_bytes(self, N): ...
def randomize(self, N: int = ...): ...

View File

@@ -4,12 +4,12 @@ def mk_gen(): ...
def mk_awaitable(): ...
def mk_coroutine(): ...
Generator = ... # type: Any
Awaitable = ... # type: Any
Coroutine = ... # type: Any
Generator: Any
Awaitable: Any
Coroutine: Any
def isawaitable(obj): ...
PATCHED = ... # type: Any
PATCHED: Any
def patch(patch_inspect: bool = ...): ...

View File

@@ -3,22 +3,22 @@ import logging
from .s3.connection import S3Connection
Version = ... # type: Any
UserAgent = ... # type: Any
config = ... # type: Any
BUCKET_NAME_RE = ... # type: Any
TOO_LONG_DNS_NAME_COMP = ... # type: Any
GENERATION_RE = ... # type: Any
VERSION_RE = ... # type: Any
ENDPOINTS_PATH = ... # type: Any
Version: Any
UserAgent: Any
config: Any
BUCKET_NAME_RE: Any
TOO_LONG_DNS_NAME_COMP: Any
GENERATION_RE: Any
VERSION_RE: Any
ENDPOINTS_PATH: Any
def init_logging(): ...
class NullHandler(logging.Handler):
def emit(self, record): ...
log = ... # type: Any
perflog = ... # type: Any
log: Any
perflog: Any
def set_file_logger(name, filepath, level: Any = ..., format_string: Optional[Any] = ...): ...
def set_stream_logger(name, level: Any = ..., format_string: Optional[Any] = ...): ...

View File

@@ -1,39 +1,39 @@
from typing import Any, Optional
from boto.auth_handler import AuthHandler
SIGV4_DETECT = ... # type: Any
SIGV4_DETECT: Any
class HmacKeys:
host = ... # type: Any
host: Any
def __init__(self, host, config, provider) -> None: ...
def update_provider(self, provider): ...
def algorithm(self): ...
def sign_string(self, string_to_sign): ...
class AnonAuthHandler(AuthHandler, HmacKeys):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def add_auth(self, http_request, **kwargs): ...
class HmacAuthV1Handler(AuthHandler, HmacKeys):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def update_provider(self, provider): ...
def add_auth(self, http_request, **kwargs): ...
class HmacAuthV2Handler(AuthHandler, HmacKeys):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def update_provider(self, provider): ...
def add_auth(self, http_request, **kwargs): ...
class HmacAuthV3Handler(AuthHandler, HmacKeys):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def add_auth(self, http_request, **kwargs): ...
class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def headers_to_sign(self, http_request): ...
def canonical_headers(self, headers_to_sign): ...
@@ -41,9 +41,9 @@ class HmacAuthV3HTTPHandler(AuthHandler, HmacKeys):
def add_auth(self, req, **kwargs): ...
class HmacAuthV4Handler(AuthHandler, HmacKeys):
capability = ... # type: Any
service_name = ... # type: Any
region_name = ... # type: Any
capability: Any
service_name: Any
region_name: Any
def __init__(self, host, config, provider, service_name: Optional[Any] = ..., region_name: Optional[Any] = ...) -> None: ...
def headers_to_sign(self, http_request): ...
def host_header(self, host, http_request): ...
@@ -64,8 +64,8 @@ class HmacAuthV4Handler(AuthHandler, HmacKeys):
def add_auth(self, req, **kwargs): ...
class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
capability = ... # type: Any
region_name = ... # type: Any
capability: Any
region_name: Any
def __init__(self, *args, **kwargs) -> None: ...
def clean_region_name(self, region_name): ...
def canonical_uri(self, http_request): ...
@@ -80,27 +80,27 @@ class S3HmacAuthV4Handler(HmacAuthV4Handler, AuthHandler):
def presign(self, req, expires, iso_date: Optional[Any] = ...): ...
class STSAnonHandler(AuthHandler):
capability = ... # type: Any
capability: Any
def add_auth(self, http_request, **kwargs): ...
class QuerySignatureHelper(HmacKeys):
def add_auth(self, http_request, **kwargs): ...
class QuerySignatureV0AuthHandler(QuerySignatureHelper, AuthHandler):
SignatureVersion = ... # type: int
capability = ... # type: Any
SignatureVersion: int
capability: Any
class QuerySignatureV1AuthHandler(QuerySignatureHelper, AuthHandler):
SignatureVersion = ... # type: int
capability = ... # type: Any
SignatureVersion: int
capability: Any
def __init__(self, *args, **kw) -> None: ...
class QuerySignatureV2AuthHandler(QuerySignatureHelper, AuthHandler):
SignatureVersion = ... # type: int
capability = ... # type: Any
SignatureVersion: int
capability: Any
class POSTPathQSV2AuthHandler(QuerySignatureV2AuthHandler, AuthHandler):
capability = ... # type: Any
capability: Any
def add_auth(self, req, **kwargs): ...
def get_auth_handler(host, config, provider, requested_capability: Optional[Any] = ...): ...

View File

@@ -4,6 +4,6 @@ from boto.plugin import Plugin
class NotReadyToAuthenticate(Exception): ...
class AuthHandler(Plugin):
capability = ... # type: Any
capability: Any
def __init__(self, host, config, provider) -> None: ...
def add_auth(self, http_request): ...

View File

@@ -5,13 +5,13 @@ from base64 import encodestring as encodebytes
from six.moves import http_client
expanduser = ... # type: Any
expanduser: Any
if sys.version_info >= (3, 0):
StandardError = Exception
else:
StandardError = __builtins__.StandardError
long_type = ... # type: Any
unquote_str = ... # type: Any
parse_qs_safe = ... # type: Any
long_type: Any
unquote_str: Any
parse_qs_safe: Any

View File

@@ -1,13 +1,13 @@
from typing import Any, Dict, Optional, Text
from six.moves import http_client
HAVE_HTTPS_CONNECTION = ... # type: bool
ON_APP_ENGINE = ... # type: Any
PORTS_BY_SECURITY = ... # type: Any
DEFAULT_CA_CERTS_FILE = ... # type: Any
HAVE_HTTPS_CONNECTION: bool
ON_APP_ENGINE: Any
PORTS_BY_SECURITY: Any
DEFAULT_CA_CERTS_FILE: Any
class HostConnectionPool:
queue = ... # type: Any
queue: Any
def __init__(self) -> None: ...
def size(self): ...
def put(self, conn): ...
@@ -15,11 +15,11 @@ class HostConnectionPool:
def clean(self): ...
class ConnectionPool:
CLEAN_INTERVAL = ... # type: float
STALE_DURATION = ... # type: float
host_to_pool = ... # type: Any
last_clean_time = ... # type: float
mutex = ... # type: Any
CLEAN_INTERVAL: float
STALE_DURATION: float
host_to_pool: Any
last_clean_time: float
mutex: Any
def __init__(self) -> None: ...
def size(self): ...
def get_http_connection(self, host, port, is_secure): ...
@@ -27,15 +27,15 @@ class ConnectionPool:
def clean(self): ...
class HTTPRequest:
method = ... # type: Any
protocol = ... # type: Any
host = ... # type: Any
port = ... # type: Any
path = ... # type: Any
auth_path = ... # type: Any
params = ... # type: Any
headers = ... # type: Any
body = ... # type: Any
method: Any
protocol: Any
host: Any
port: Any
path: Any
auth_path: Any
params: Any
headers: Any
body: Any
def __init__(self, method, protocol, host, port, path, auth_path, params, headers, body) -> None: ...
def authorize(self, connection, **kwargs): ...
@@ -44,49 +44,49 @@ class HTTPResponse(http_client.HTTPResponse):
def read(self, amt: Optional[Any] = ...): ...
class AWSAuthConnection:
suppress_consec_slashes = ... # type: Any
num_retries = ... # type: int
is_secure = ... # type: Any
https_validate_certificates = ... # type: Any
ca_certificates_file = ... # type: Any
port = ... # type: Any
http_exceptions = ... # type: Any
http_unretryable_exceptions = ... # type: Any
socket_exception_values = ... # type: Any
https_connection_factory = ... # type: Any
protocol = ... # type: str
host = ... # type: Any
path = ... # type: Any
debug = ... # type: Any
host_header = ... # type: Any
http_connection_kwargs = ... # type: Any
provider = ... # type: Any
auth_service_name = ... # type: Any
request_hook = ... # type: Any
suppress_consec_slashes: Any
num_retries: int
is_secure: Any
https_validate_certificates: Any
ca_certificates_file: Any
port: Any
http_exceptions: Any
http_unretryable_exceptions: Any
socket_exception_values: Any
https_connection_factory: Any
protocol: str
host: Any
path: Any
debug: Any
host_header: Any
http_connection_kwargs: Any
provider: Any
auth_service_name: Any
request_hook: Any
def __init__(self, host, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., provider: str = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ...) -> None: ...
auth_region_name = ... # type: Any
auth_region_name: Any
@property
def connection(self): ...
@property
def aws_access_key_id(self): ...
@property
def gs_access_key_id(self) -> Any: ...
access_key = ... # type: Any
access_key: Any
@property
def aws_secret_access_key(self): ...
@property
def gs_secret_access_key(self): ...
secret_key = ... # type: Any
secret_key: Any
@property
def profile_name(self): ...
def get_path(self, path: str = ...): ...
def server_name(self, port: Optional[Any] = ...): ...
proxy = ... # type: Any
proxy_port = ... # type: Any
proxy_user = ... # type: Any
proxy_pass = ... # type: Any
no_proxy = ... # type: Any
use_proxy = ... # type: Any
proxy: Any
proxy_port: Any
proxy_user: Any
proxy_pass: Any
no_proxy: Any
use_proxy: Any
def handle_proxy(self, proxy, proxy_port, proxy_user, proxy_pass): ...
def get_http_connection(self, host, port, is_secure): ...
def skip_proxy(self, host): ...
@@ -103,8 +103,8 @@ class AWSAuthConnection:
def close(self): ...
class AWSQueryConnection(AWSAuthConnection):
APIVersion = ... # type: str
ResponseError = ... # type: Any
APIVersion: str
ResponseError: Any
def __init__(self, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., host: Optional[Any] = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., path: str = ..., security_token: Optional[Any] = ..., validate_certs: bool = ..., profile_name: Optional[Any] = ..., provider: str = ...) -> None: ...
def get_utf8_value(self, value): ...
def make_request(self, action, params: Optional[Any] = ..., path: str = ..., verb: str = ..., *args, **kwargs): ... # type: ignore # https://github.com/python/mypy/issues/1237

View File

@@ -1,6 +1,6 @@
from typing import Any
RegionData = ... # type: Any
RegionData: Any
def regions(**kw_params): ...
def connect_to_region(region_name, **kw_params): ...

View File

@@ -1,16 +1,16 @@
from typing import Any
from boto.connection import AWSQueryConnection
RegionData = ... # type: Any
RegionData: Any
def regions(): ...
def connect_to_region(region_name, **kw_params): ...
class ELBConnection(AWSQueryConnection):
APIVersion = ... # type: Any
DefaultRegionName = ... # type: Any
DefaultRegionEndpoint = ... # type: Any
region = ... # type: Any
APIVersion: Any
DefaultRegionName: Any
DefaultRegionEndpoint: Any
region: Any
def __init__(self, aws_access_key_id=..., aws_secret_access_key=..., is_secure=..., port=..., proxy=..., proxy_port=..., proxy_user=..., proxy_pass=..., debug=..., https_connection_factory=..., region=..., path=..., security_token=..., validate_certs=..., profile_name=...) -> None: ...
def build_list_params(self, params, items, label): ...
def get_all_load_balancers(self, load_balancer_names=..., marker=...): ...

View File

@@ -2,7 +2,7 @@ from typing import Any, Optional
from boto.compat import StandardError
class BotoClientError(StandardError):
reason = ... # type: Any
reason: Any
def __init__(self, reason, *args) -> None: ...
class SDBPersistenceError(StandardError): ...
@@ -11,13 +11,13 @@ class S3PermissionsError(StoragePermissionsError): ...
class GSPermissionsError(StoragePermissionsError): ...
class BotoServerError(StandardError):
status = ... # type: Any
reason = ... # type: Any
body = ... # type: Any
request_id = ... # type: Any
error_code = ... # type: Any
message = ... # type: str
box_usage = ... # type: Any
status: Any
reason: Any
body: Any
request_id: Any
error_code: Any
message: str
box_usage: Any
def __init__(self, status, reason, body: Optional[Any] = ..., *args) -> None: ...
def __getattr__(self, name): ...
def __setattr__(self, name, value): ...
@@ -25,17 +25,17 @@ class BotoServerError(StandardError):
def endElement(self, name, value, connection): ...
class ConsoleOutput:
parent = ... # type: Any
instance_id = ... # type: Any
timestamp = ... # type: Any
comment = ... # type: Any
output = ... # type: Any
parent: Any
instance_id: Any
timestamp: Any
comment: Any
output: Any
def __init__(self, parent: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
class StorageCreateError(BotoServerError):
bucket = ... # type: Any
bucket: Any
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
def endElement(self, name, value, connection): ...
@@ -46,18 +46,18 @@ class S3CopyError(StorageCopyError): ...
class GSCopyError(StorageCopyError): ...
class SQSError(BotoServerError):
detail = ... # type: Any
type = ... # type: Any
detail: Any
type: Any
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
class SQSDecodeError(BotoClientError):
message = ... # type: Any
message: Any
def __init__(self, reason, message) -> None: ...
class StorageResponseError(BotoServerError):
resource = ... # type: Any
resource: Any
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
@@ -66,18 +66,18 @@ class S3ResponseError(StorageResponseError): ...
class GSResponseError(StorageResponseError): ...
class EC2ResponseError(BotoServerError):
errors = ... # type: Any
errors: Any
def __init__(self, status, reason, body: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
request_id = ... # type: Any
request_id: Any
def endElement(self, name, value, connection): ...
class JSONResponseError(BotoServerError):
status = ... # type: Any
reason = ... # type: Any
body = ... # type: Any
error_message = ... # type: Any
error_code = ... # type: Any
status: Any
reason: Any
body: Any
error_message: Any
error_code: Any
def __init__(self, status, reason, body: Optional[Any] = ..., *args) -> None: ...
class DynamoDBResponseError(JSONResponseError): ...
@@ -85,9 +85,9 @@ class SWFResponseError(JSONResponseError): ...
class EmrResponseError(BotoServerError): ...
class _EC2Error:
connection = ... # type: Any
error_code = ... # type: Any
error_message = ... # type: Any
connection: Any
error_code: Any
error_message: Any
def __init__(self, connection: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
@@ -99,48 +99,48 @@ class S3DataError(StorageDataError): ...
class GSDataError(StorageDataError): ...
class InvalidUriError(Exception):
message = ... # type: Any
message: Any
def __init__(self, message) -> None: ...
class InvalidAclError(Exception):
message = ... # type: Any
message: Any
def __init__(self, message) -> None: ...
class InvalidCorsError(Exception):
message = ... # type: Any
message: Any
def __init__(self, message) -> None: ...
class NoAuthHandlerFound(Exception): ...
class InvalidLifecycleConfigError(Exception):
message = ... # type: Any
message: Any
def __init__(self, message) -> None: ...
class ResumableTransferDisposition:
START_OVER = ... # type: str
WAIT_BEFORE_RETRY = ... # type: str
ABORT_CUR_PROCESS = ... # type: str
ABORT = ... # type: str
START_OVER: str
WAIT_BEFORE_RETRY: str
ABORT_CUR_PROCESS: str
ABORT: str
class ResumableUploadException(Exception):
message = ... # type: Any
disposition = ... # type: Any
message: Any
disposition: Any
def __init__(self, message, disposition) -> None: ...
class ResumableDownloadException(Exception):
message = ... # type: Any
disposition = ... # type: Any
message: Any
disposition: Any
def __init__(self, message, disposition) -> None: ...
class TooManyRecordsException(Exception):
message = ... # type: Any
message: Any
def __init__(self, message) -> None: ...
class PleaseRetryException(Exception):
message = ... # type: Any
response = ... # type: Any
message: Any
response: Any
def __init__(self, message, response: Optional[Any] = ...) -> None: ...
class InvalidInstanceMetadataError(Exception):
MSG = ... # type: str
MSG: str
def __init__(self, msg) -> None: ...

View File

@@ -2,13 +2,13 @@ from typing import Any, Dict, List, Mapping, Optional, Type
from boto.connection import AWSQueryConnection
class KMSConnection(AWSQueryConnection):
APIVersion = ... # type: str
DefaultRegionName = ... # type: str
DefaultRegionEndpoint = ... # type: str
ServiceName = ... # type: str
TargetPrefix = ... # type: str
ResponseError = ... # type: Type[Exception]
region = ... # type: Any
APIVersion: str
DefaultRegionName: str
DefaultRegionEndpoint: str
ServiceName: str
TargetPrefix: str
ResponseError: Type[Exception]
region: Any
def __init__(self, **kwargs) -> None: ...
def create_alias(self, alias_name: str, target_key_id: str) -> Optional[Dict[str, Any]]: ...
def create_grant(self, key_id: str, grantee_principal: str, retiring_principal: Optional[str] = ..., operations: Optional[List[str]] = ..., constraints: Optional[Dict[str, Dict[str, str]]] = ..., grant_tokens: Optional[List[str]] = ...) -> Optional[Dict[str, Any]]: ...

View File

@@ -1,7 +1,7 @@
from typing import Any, Optional
class Plugin:
capability = ... # type: Any
capability: Any
@classmethod
def is_capable(cls, requested_capability): ...

View File

@@ -6,10 +6,10 @@ def load_regions(): ...
def get_regions(service_name, region_cls: Optional[Any] = ..., connection_cls: Optional[Any] = ...): ...
class RegionInfo:
connection = ... # type: Any
name = ... # type: Any
endpoint = ... # type: Any
connection_cls = ... # type: Any
connection: Any
name: Any
endpoint: Any
connection_cls: Any
def __init__(self, connection: Optional[Any] = ..., name: Optional[Any] = ..., endpoint: Optional[Any] = ..., connection_cls: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -2,21 +2,21 @@ from .connection import S3Connection
from .user import User
from typing import Any, Dict, Optional, List, Text, Union
CannedACLStrings = ... # type: List[str]
CannedACLStrings: List[str]
class Policy:
parent = ... # type: Any
namespace = ... # type: Any
acl = ... # type: ACL
parent: Any
namespace: Any
acl: ACL
def __init__(self, parent: Optional[Any] = ...) -> None: ...
owner = ... # type: User
owner: User
def startElement(self, name: Text, attrs: Dict[str, Any], connection: S3Connection) -> Union[None, User, ACL]: ...
def endElement(self, name: Text, value: Any, connection: S3Connection) -> None: ...
def to_xml(self) -> str: ...
class ACL:
policy = ... # type: Policy
grants = ... # type: List[Grant]
policy: Policy
grants: List[Grant]
def __init__(self, policy: Optional[Policy] = ...) -> None: ...
def add_grant(self, grant: Grant) -> None: ...
def add_email_grant(self, permission: Text, email_address: Text) -> None: ...
@@ -26,13 +26,13 @@ class ACL:
def to_xml(self) -> str: ...
class Grant:
NameSpace = ... # type: Text
permission = ... # type: Text
id = ... # type: Text
display_name = ... # type: Text
uri = ... # type: Text
email_address = ... # type: Text
type = ... # type: Text
NameSpace: Text
permission: Text
id: Text
display_name: Text
uri: Text
email_address: Text
type: Text
def __init__(self, permission: Optional[Text] = ..., type: Optional[Text] = ..., id: Optional[Text] = ..., display_name: Optional[Text] = ..., uri: Optional[Text] = ..., email_address: Optional[Text] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name: Text, value: Any, connection: S3Connection) -> None: ...

View File

@@ -5,26 +5,26 @@ from .key import Key
from typing import Any, Dict, Optional, Text, Type, List
class S3WebsiteEndpointTranslate:
trans_region = ... # type: Dict[str, str]
trans_region: Dict[str, str]
@classmethod
def translate_region(self, reg: Text) -> str: ...
S3Permissions = ... # type: List[str]
S3Permissions: List[str]
class Bucket:
LoggingGroup = ... # type: str
BucketPaymentBody = ... # type: str
VersioningBody = ... # type: str
VersionRE = ... # type: str
MFADeleteRE = ... # type: str
name = ... # type: Text
connection = ... # type: S3Connection
key_class = ... # type: Type[Key]
LoggingGroup: str
BucketPaymentBody: str
VersioningBody: str
VersionRE: str
MFADeleteRE: str
name: Text
connection: S3Connection
key_class: Type[Key]
def __init__(self, connection: Optional[S3Connection] = ..., name: Optional[Text] = ..., key_class: Type[Key] = ...) -> None: ...
def __iter__(self): ...
def __contains__(self, key_name) -> bool: ...
def startElement(self, name, attrs, connection): ...
creation_date = ... # type: Any
creation_date: Any
def endElement(self, name, value, connection): ...
def set_key_class(self, key_class): ...
def lookup(self, key_name, headers: Optional[Dict[Text, Text]] = ...): ...

View File

@@ -6,35 +6,35 @@ from typing import Any, Iterable, Iterator, Optional
def bucket_lister(bucket, prefix: str = ..., delimiter: str = ..., marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
class BucketListResultSet(Iterable[Key]):
bucket = ... # type: Any
prefix = ... # type: Any
delimiter = ... # type: Any
marker = ... # type: Any
headers = ... # type: Any
encoding_type = ... # type: Any
bucket: Any
prefix: Any
delimiter: Any
marker: Any
headers: Any
encoding_type: Any
def __init__(self, bucket: Optional[Any] = ..., prefix: str = ..., delimiter: str = ..., marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
def __iter__(self) -> Iterator[Key]: ...
def versioned_bucket_lister(bucket, prefix: str = ..., delimiter: str = ..., key_marker: str = ..., version_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
class VersionedBucketListResultSet:
bucket = ... # type: Any
prefix = ... # type: Any
delimiter = ... # type: Any
key_marker = ... # type: Any
version_id_marker = ... # type: Any
headers = ... # type: Any
encoding_type = ... # type: Any
bucket: Any
prefix: Any
delimiter: Any
key_marker: Any
version_id_marker: Any
headers: Any
encoding_type: Any
def __init__(self, bucket: Optional[Any] = ..., prefix: str = ..., delimiter: str = ..., key_marker: str = ..., version_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
def __iter__(self) -> Iterator[Key]: ...
def multipart_upload_lister(bucket, key_marker: str = ..., upload_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...): ...
class MultiPartUploadListResultSet:
bucket = ... # type: Any
key_marker = ... # type: Any
upload_id_marker = ... # type: Any
headers = ... # type: Any
encoding_type = ... # type: Any
bucket: Any
key_marker: Any
upload_id_marker: Any
headers: Any
encoding_type: Any
def __init__(self, bucket: Optional[Any] = ..., key_marker: str = ..., upload_id_marker: str = ..., headers: Optional[Any] = ..., encoding_type: Optional[Any] = ...) -> None: ...
def __iter__(self): ...

View File

@@ -1,9 +1,9 @@
from typing import Any, Optional
class BucketLogging:
target = ... # type: Any
prefix = ... # type: Any
grants = ... # type: Any
target: Any
prefix: Any
grants: Any
def __init__(self, target: Optional[Any] = ..., prefix: Optional[Any] = ..., grants: Optional[Any] = ...) -> None: ...
def add_grant(self, grant): ...
def startElement(self, name, attrs, connection): ...

View File

@@ -28,27 +28,27 @@ class ProtocolIndependentOrdinaryCallingFormat(OrdinaryCallingFormat):
def build_url_base(self, connection, protocol, server, bucket, key: str = ...): ...
class Location:
DEFAULT = ... # type: str
EU = ... # type: str
EUCentral1 = ... # type: str
USWest = ... # type: str
USWest2 = ... # type: str
SAEast = ... # type: str
APNortheast = ... # type: str
APSoutheast = ... # type: str
APSoutheast2 = ... # type: str
CNNorth1 = ... # type: str
DEFAULT: str
EU: str
EUCentral1: str
USWest: str
USWest2: str
SAEast: str
APNortheast: str
APSoutheast: str
APSoutheast2: str
CNNorth1: str
class NoHostProvided: ...
class HostRequiredError(BotoClientError): ...
class S3Connection(AWSAuthConnection):
DefaultHost = ... # type: Any
DefaultCallingFormat = ... # type: Any
QueryString = ... # type: str
calling_format = ... # type: Any
bucket_class = ... # type: Type[Bucket]
anon = ... # type: Any
DefaultHost: Any
DefaultCallingFormat: Any
QueryString: str
calling_format: Any
bucket_class: Type[Bucket]
anon: Any
def __init__(self, aws_access_key_id: Optional[Any] = ..., aws_secret_access_key: Optional[Any] = ..., is_secure: bool = ..., port: Optional[Any] = ..., proxy: Optional[Any] = ..., proxy_port: Optional[Any] = ..., proxy_user: Optional[Any] = ..., proxy_pass: Optional[Any] = ..., host: Any = ..., debug: int = ..., https_connection_factory: Optional[Any] = ..., calling_format: Any = ..., path: str = ..., provider: str = ..., bucket_class: Type[Bucket] = ..., security_token: Optional[Any] = ..., suppress_consec_slashes: bool = ..., anon: bool = ..., validate_certs: Optional[Any] = ..., profile_name: Optional[Any] = ...) -> None: ...
def __iter__(self): ...
def __contains__(self, bucket_name): ...

View File

@@ -1,12 +1,12 @@
from typing import Any, Optional
class CORSRule:
allowed_method = ... # type: Any
allowed_origin = ... # type: Any
id = ... # type: Any
allowed_header = ... # type: Any
max_age_seconds = ... # type: Any
expose_header = ... # type: Any
allowed_method: Any
allowed_origin: Any
id: Any
allowed_header: Any
max_age_seconds: Any
expose_header: Any
def __init__(self, allowed_method: Optional[Any] = ..., allowed_origin: Optional[Any] = ..., id: Optional[Any] = ..., allowed_header: Optional[Any] = ..., max_age_seconds: Optional[Any] = ..., expose_header: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,12 +1,12 @@
from typing import Any, Optional
class DeleteMarker:
bucket = ... # type: Any
name = ... # type: Any
version_id = ... # type: Any
is_latest = ... # type: bool
last_modified = ... # type: Any
owner = ... # type: Any
bucket: Any
name: Any
version_id: Any
is_latest: bool
last_modified: Any
owner: Any
def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,15 +1,15 @@
from typing import Any
class KeyFile:
key = ... # type: Any
location = ... # type: int
closed = ... # type: bool
softspace = ... # type: int
mode = ... # type: str
encoding = ... # type: str
errors = ... # type: str
newlines = ... # type: str
name = ... # type: Any
key: Any
location: int
closed: bool
softspace: int
mode: str
encoding: str
errors: str
newlines: str
name: Any
def __init__(self, key) -> None: ...
def tell(self): ...
def seek(self, pos, whence: Any = ...): ...

View File

@@ -1,37 +1,37 @@
from typing import Any, Optional
class Rule:
id = ... # type: Any
prefix = ... # type: Any
status = ... # type: Any
expiration = ... # type: Any
transition = ... # type: Any
id: Any
prefix: Any
status: Any
expiration: Any
transition: Any
def __init__(self, id: Optional[Any] = ..., prefix: Optional[Any] = ..., status: Optional[Any] = ..., expiration: Optional[Any] = ..., transition: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
def to_xml(self): ...
class Expiration:
days = ... # type: Any
date = ... # type: Any
days: Any
date: Any
def __init__(self, days: Optional[Any] = ..., date: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
def to_xml(self): ...
class Transition:
days = ... # type: Any
date = ... # type: Any
storage_class = ... # type: Any
days: Any
date: Any
storage_class: Any
def __init__(self, days: Optional[Any] = ..., date: Optional[Any] = ..., storage_class: Optional[Any] = ...) -> None: ...
def to_xml(self): ...
class Transitions(list):
transition_properties = ... # type: int
current_transition_property = ... # type: int
temp_days = ... # type: Any
temp_date = ... # type: Any
temp_storage_class = ... # type: Any
transition_properties: int
current_transition_property: int
temp_days: Any
temp_date: Any
temp_storage_class: Any
def __init__(self) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,27 +1,27 @@
from typing import Any, Optional
class Deleted:
key = ... # type: Any
version_id = ... # type: Any
delete_marker = ... # type: Any
delete_marker_version_id = ... # type: Any
key: Any
version_id: Any
delete_marker: Any
delete_marker_version_id: Any
def __init__(self, key: Optional[Any] = ..., version_id: Optional[Any] = ..., delete_marker: bool = ..., delete_marker_version_id: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
class Error:
key = ... # type: Any
version_id = ... # type: Any
code = ... # type: Any
message = ... # type: Any
key: Any
version_id: Any
code: Any
message: Any
def __init__(self, key: Optional[Any] = ..., version_id: Optional[Any] = ..., code: Optional[Any] = ..., message: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
class MultiDeleteResult:
bucket = ... # type: Any
deleted = ... # type: Any
errors = ... # type: Any
bucket: Any
deleted: Any
errors: Any
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,23 +1,23 @@
from typing import Any, Optional
class CompleteMultiPartUpload:
bucket = ... # type: Any
location = ... # type: Any
bucket_name = ... # type: Any
key_name = ... # type: Any
etag = ... # type: Any
version_id = ... # type: Any
encrypted = ... # type: Any
bucket: Any
location: Any
bucket_name: Any
key_name: Any
etag: Any
version_id: Any
encrypted: Any
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
class Part:
bucket = ... # type: Any
part_number = ... # type: Any
last_modified = ... # type: Any
etag = ... # type: Any
size = ... # type: Any
bucket: Any
part_number: Any
last_modified: Any
etag: Any
size: Any
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
@@ -25,18 +25,18 @@ class Part:
def part_lister(mpupload, part_number_marker: Optional[Any] = ...): ...
class MultiPartUpload:
bucket = ... # type: Any
bucket_name = ... # type: Any
key_name = ... # type: Any
id = ... # type: Any
initiator = ... # type: Any
owner = ... # type: Any
storage_class = ... # type: Any
initiated = ... # type: Any
part_number_marker = ... # type: Any
next_part_number_marker = ... # type: Any
max_parts = ... # type: Any
is_truncated = ... # type: bool
bucket: Any
bucket_name: Any
key_name: Any
id: Any
initiator: Any
owner: Any
storage_class: Any
initiated: Any
part_number_marker: Any
next_part_number_marker: Any
max_parts: Any
is_truncated: bool
def __init__(self, bucket: Optional[Any] = ...) -> None: ...
def __iter__(self): ...
def to_xml(self): ...

View File

@@ -1,8 +1,8 @@
from typing import Any, Optional
class Prefix:
bucket = ... # type: Any
name = ... # type: Any
bucket: Any
name: Any
def __init__(self, bucket: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,8 +1,8 @@
from typing import Any, Optional
class Tag:
key = ... # type: Any
value = ... # type: Any
key: Any
value: Any
def __init__(self, key: Optional[Any] = ..., value: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -1,9 +1,9 @@
from typing import Any, Optional
class User:
type = ... # type: Any
id = ... # type: Any
display_name = ... # type: Any
type: Any
id: Any
display_name: Any
def __init__(self, parent: Optional[Any] = ..., id: str = ..., display_name: str = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...

View File

@@ -3,27 +3,27 @@ from typing import Any, Optional
def tag(key, value): ...
class WebsiteConfiguration:
suffix = ... # type: Any
error_key = ... # type: Any
redirect_all_requests_to = ... # type: Any
routing_rules = ... # type: Any
suffix: Any
error_key: Any
redirect_all_requests_to: Any
routing_rules: Any
def __init__(self, suffix: Optional[Any] = ..., error_key: Optional[Any] = ..., redirect_all_requests_to: Optional[Any] = ..., routing_rules: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
def to_xml(self): ...
class _XMLKeyValue:
translator = ... # type: Any
container = ... # type: Any
translator: Any
container: Any
def __init__(self, translator, container: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
def to_xml(self): ...
class RedirectLocation(_XMLKeyValue):
TRANSLATOR = ... # type: Any
hostname = ... # type: Any
protocol = ... # type: Any
TRANSLATOR: Any
hostname: Any
protocol: Any
def __init__(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ...) -> None: ...
def to_xml(self): ...
@@ -34,8 +34,8 @@ class RoutingRules(list):
def to_xml(self): ...
class RoutingRule:
condition = ... # type: Any
redirect = ... # type: Any
condition: Any
redirect: Any
def __init__(self, condition: Optional[Any] = ..., redirect: Optional[Any] = ...) -> None: ...
def startElement(self, name, attrs, connection): ...
def endElement(self, name, value, connection): ...
@@ -45,18 +45,18 @@ class RoutingRule:
def then_redirect(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ..., replace_key: Optional[Any] = ..., replace_key_prefix: Optional[Any] = ..., http_redirect_code: Optional[Any] = ...): ...
class Condition(_XMLKeyValue):
TRANSLATOR = ... # type: Any
key_prefix = ... # type: Any
http_error_code = ... # type: Any
TRANSLATOR: Any
key_prefix: Any
http_error_code: Any
def __init__(self, key_prefix: Optional[Any] = ..., http_error_code: Optional[Any] = ...) -> None: ...
def to_xml(self): ...
class Redirect(_XMLKeyValue):
TRANSLATOR = ... # type: Any
hostname = ... # type: Any
protocol = ... # type: Any
replace_key = ... # type: Any
replace_key_prefix = ... # type: Any
http_redirect_code = ... # type: Any
TRANSLATOR: Any
hostname: Any
protocol: Any
replace_key: Any
replace_key_prefix: Any
http_redirect_code: Any
def __init__(self, hostname: Optional[Any] = ..., protocol: Optional[Any] = ..., replace_key: Optional[Any] = ..., replace_key_prefix: Optional[Any] = ..., http_redirect_code: Optional[Any] = ...) -> None: ...
def to_xml(self): ...

View File

@@ -49,8 +49,8 @@ _Provider = Any # TODO replace this with boto.provider.Provider once stubs exis
_LockType = Any # TODO replace this with _thread.LockType once stubs exist
JSONDecodeError = ... # type: Type[ValueError]
qsa_of_interest = ... # type: List[str]
JSONDecodeError: Type[ValueError]
qsa_of_interest: List[str]
def unquote_v(nv: str) -> Union[str, Tuple[str, str]]: ...
@@ -106,10 +106,10 @@ def get_instance_userdata(
num_retries: int = ...,
) -> Mapping[str, str]: ...
ISO8601 = ... # type: str
ISO8601_MS = ... # type: str
RFC1123 = ... # type: str
LOCALE_LOCK = ... # type: _LockType
ISO8601: str
ISO8601_MS: str
RFC1123: str
LOCALE_LOCK: _LockType
def setlocale(name: Union[str, Tuple[str, str]]) -> ContextManager[str]: ...
def get_ts(ts: Optional[time.struct_time] = ...) -> str: ...
@@ -124,11 +124,11 @@ def fetch_file(
) -> Optional[IO[str]]: ...
class ShellCommand:
exit_code = ... # type: int
command = ... # type: subprocess._CMD
log_fp = ... # type: _StringIO
wait = ... # type: bool
fail_fast = ... # type: bool
exit_code: int
command: subprocess._CMD
log_fp: _StringIO
wait: bool
fail_fast: bool
def __init__(
self,
@@ -138,21 +138,21 @@ class ShellCommand:
cwd: Optional[subprocess._TXT] = ...,
) -> None: ...
process = ... # type: subprocess.Popen
process: subprocess.Popen
def run(self, cwd: Optional[subprocess._CMD] = ...) -> Optional[int]: ...
def setReadOnly(self, value) -> None: ...
def getStatus(self) -> Optional[int]: ...
status = ... # type: Optional[int]
status: Optional[int]
def getOutput(self) -> str: ...
output = ... # type: str
output: str
class AuthSMTPHandler(logging.handlers.SMTPHandler):
username = ... # type: str
password = ... # type: str
username: str
password: str
def __init__(
self,
mailhost: str,
@@ -165,16 +165,16 @@ class AuthSMTPHandler(logging.handlers.SMTPHandler):
class LRUCache(Dict[_KT, _VT]):
class _Item:
previous = ... # type: Optional[LRUCache._Item]
next = ... # type: Optional[LRUCache._Item]
previous: Optional[LRUCache._Item]
next: Optional[LRUCache._Item]
key = ...
value = ...
def __init__(self, key, value) -> None: ...
_dict = ... # type: Dict[_KT, LRUCache._Item]
capacity = ... # type: int
head = ... # type: Optional[LRUCache._Item]
tail = ... # type: Optional[LRUCache._Item]
_dict: Dict[_KT, LRUCache._Item]
capacity: int
head: Optional[LRUCache._Item]
tail: Optional[LRUCache._Item]
def __init__(self, capacity: int) -> None: ...
@@ -183,8 +183,8 @@ class LRUCache(Dict[_KT, _VT]):
_str = str
class Password:
hashfunc = ... # type: Callable[[bytes], _HashType]
str = ... # type: Optional[_str]
hashfunc: Callable[[bytes], _HashType]
str: Optional[_str]
def __init__(
self,

View File

@@ -9,5 +9,5 @@ class weekday(object):
def __repr__(self) -> str: ...
weekday = ... # type: int
n = ... # type: int
weekday: int
n: int

View File

@@ -5,14 +5,14 @@ _FileOrStr = Union[bytes, Text, IO[str], IO[Any]]
class parserinfo(object):
JUMP = ... # type: List[str]
WEEKDAYS = ... # type: List[Tuple[str, str]]
MONTHS = ... # type: List[Tuple[str, str]]
HMS = ... # type: List[Tuple[str, str, str]]
AMPM = ... # type: List[Tuple[str, str]]
UTCZONE = ... # type: List[str]
PERTAIN = ... # type: List[str]
TZOFFSET = ... # type: Dict[str, int]
JUMP: List[str]
WEEKDAYS: List[Tuple[str, str]]
MONTHS: List[Tuple[str, str]]
HMS: List[Tuple[str, str, str]]
AMPM: List[Tuple[str, str]]
UTCZONE: List[str]
PERTAIN: List[str]
TZOFFSET: Dict[str, int]
def __init__(self, dayfirst: bool = ..., yearfirst: bool = ...) -> None: ...
def jump(self, name: Text) -> bool: ...
@@ -33,11 +33,11 @@ class parser(object):
ignoretz: bool = ..., tzinfos: Optional[Mapping[Text, tzinfo]] = ...,
**kwargs: Any) -> datetime: ...
DEFAULTPARSER = ... # type: parser
DEFAULTPARSER: parser
def parse(timestr: _FileOrStr, parserinfo: Optional[parserinfo] = ..., **kwargs: Any) -> datetime: ...
class _tzparser: ...
DEFAULTTZPARSER = ... # type: _tzparser
DEFAULTTZPARSER: _tzparser
class InvalidDatetimeError(ValueError): ...
class InvalidDateError(InvalidDatetimeError): ...

View File

@@ -19,6 +19,6 @@ class tzrangebase(_tzinfo):
def tzname(self, dt: Optional[datetime]) -> str: ...
def fromutc(self, dt: datetime) -> datetime: ...
def is_ambiguous(self, dt: datetime) -> bool: ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
__reduce__ = ... # type: Any
__reduce__: Any

View File

@@ -6,9 +6,9 @@ from ..relativedelta import relativedelta
_FileObj = Union[str, Text, IO[str], IO[Text]]
ZERO = ... # type: datetime.timedelta
EPOCH = ... # type: datetime.datetime
EPOCHORDINAL = ... # type: int
ZERO: datetime.timedelta
EPOCH: datetime.datetime
EPOCHORDINAL: int
class tzutc(datetime.tzinfo):
def utcoffset(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
@@ -16,9 +16,9 @@ class tzutc(datetime.tzinfo):
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def __eq__(self, other): ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
__reduce__ = ... # type: Any
__reduce__: Any
class tzoffset(datetime.tzinfo):
def __init__(self, name, offset) -> None: ...
@@ -27,9 +27,9 @@ class tzoffset(datetime.tzinfo):
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def __eq__(self, other): ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
__reduce__ = ... # type: Any
__reduce__: Any
class tzlocal(_tzinfo):
def __init__(self) -> None: ...
@@ -38,14 +38,14 @@ class tzlocal(_tzinfo):
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def is_ambiguous(self, dt: Optional[datetime.datetime]) -> bool: ...
def __eq__(self, other): ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
__reduce__ = ... # type: Any
__reduce__: Any
class _ttinfo:
def __init__(self) -> None: ...
def __eq__(self, other): ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
class tzfile(_tzinfo):
@@ -55,19 +55,19 @@ class tzfile(_tzinfo):
def dst(self, dt: Optional[datetime.datetime]) -> Optional[datetime.timedelta]: ...
def tzname(self, dt: Optional[datetime.datetime]) -> str: ...
def __eq__(self, other): ...
__hash__ = ... # type: Any
__hash__: Any
def __ne__(self, other): ...
def __reduce__(self): ...
def __reduce_ex__(self, protocol): ...
class tzrange(tzrangebase):
hasdst = ... # type: bool
hasdst: bool
def __init__(self, stdabbr: Text, stdoffset: Union[int, datetime.timedelta, None] = ..., dstabbr: Optional[Text] = ..., dstoffset: Union[int, datetime.timedelta, None] = ..., start: Optional[relativedelta] = ..., end: Optional[relativedelta] = ...) -> None: ...
def transitions(self, year: int) -> Tuple[datetime.datetime, datetime.datetime]: ...
def __eq__(self, other): ...
class tzstr(tzrange):
hasdst = ... # type: bool
hasdst: bool
def __init__(self, s: Union[bytes, _FileObj], posix_offset: bool = ...) -> None: ...
class tzical:
@@ -75,8 +75,8 @@ class tzical:
def keys(self): ...
def get(self, tzid: Optional[Any] = ...): ...
TZFILES = ... # type: List[str]
TZPATHS = ... # type: List[str]
TZFILES: List[str]
TZPATHS: List[str]
def gettz(name: Optional[Text] = ...) -> Optional[datetime.tzinfo]: ...
def datetime_exists(dt: datetime.datetime, tz: Optional[datetime.tzinfo] = ...) -> bool: ...

View File

@@ -1,6 +1,6 @@
from typing import Tuple, Pattern, List, Dict, Union
_DEFAULT_DELIMITER = ... # type: str
_DEFAULT_DELIMITER: str
def emojize(
string: str,

View File

@@ -1 +1 @@
__version__ = ... # type: bytes
__version__: bytes

View File

@@ -10,8 +10,8 @@ from typing import (
class Any(Message, well_known_types.Any_):
type_url = ... # type: Text
value = ... # type: bytes
type_url: Text
value: bytes
def __init__(self,
type_url: Optional[Text] = ...,

View File

@@ -14,7 +14,7 @@ from typing import (
class TestAny(Message):
int32_value = ... # type: int
int32_value: int
@property
def any_value(self) -> Any: ...

View File

@@ -19,9 +19,9 @@ from typing import (
class Api(Message):
name = ... # type: Text
version = ... # type: Text
syntax = ... # type: Syntax
name: Text
version: Text
syntax: Syntax
@property
def methods(self) -> RepeatedCompositeFieldContainer[Method]: ...
@@ -50,12 +50,12 @@ class Api(Message):
class Method(Message):
name = ... # type: Text
request_type_url = ... # type: Text
request_streaming = ... # type: bool
response_type_url = ... # type: Text
response_streaming = ... # type: bool
syntax = ... # type: Syntax
name: Text
request_type_url: Text
request_streaming: bool
response_type_url: Text
response_streaming: bool
syntax: Syntax
@property
def options(self) -> RepeatedCompositeFieldContainer[Option]: ...
@@ -75,8 +75,8 @@ class Method(Message):
class Mixin(Message):
name = ... # type: Text
root = ... # type: Text
name: Text
root: Text
def __init__(self,
name: Optional[Text] = ...,

View File

@@ -16,10 +16,10 @@ from typing import (
class Version(Message):
major = ... # type: int
minor = ... # type: int
patch = ... # type: int
suffix = ... # type: Text
major: int
minor: int
patch: int
suffix: Text
def __init__(self,
major: Optional[int] = ...,
@@ -33,8 +33,8 @@ class Version(Message):
class CodeGeneratorRequest(Message):
file_to_generate = ... # type: RepeatedScalarFieldContainer[Text]
parameter = ... # type: Text
file_to_generate: RepeatedScalarFieldContainer[Text]
parameter: Text
@property
def proto_file(self) -> RepeatedCompositeFieldContainer[FileDescriptorProto]: ...
@@ -56,9 +56,9 @@ class CodeGeneratorRequest(Message):
class CodeGeneratorResponse(Message):
class File(Message):
name = ... # type: Text
insertion_point = ... # type: Text
content = ... # type: Text
name: Text
insertion_point: Text
content: Text
def __init__(self,
name: Optional[Text] = ...,
@@ -68,7 +68,7 @@ class CodeGeneratorResponse(Message):
@classmethod
def FromString(cls, s: bytes) -> CodeGeneratorResponse.File: ...
error = ... # type: Text
error: Text
@property
def file(self) -> RepeatedCompositeFieldContainer[CodeGeneratorResponse.File]: ...

View File

@@ -19,95 +19,95 @@ class DescriptorMetaclass(type):
def __instancecheck__(self, obj): ...
class DescriptorBase(metaclass=DescriptorMetaclass):
has_options = ... # type: Any
has_options: Any
def __init__(self, options, options_class_name) -> None: ...
def GetOptions(self): ...
class _NestedDescriptorBase(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
file = ... # type: Any
containing_type = ... # type: Any
name: Any
full_name: Any
file: Any
containing_type: Any
def __init__(self, options, options_class_name, name, full_name, file, containing_type, serialized_start=..., serialized_end=...) -> None: ...
def GetTopLevelContainingType(self): ...
def CopyToProto(self, proto): ...
class Descriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...): ...
fields = ... # type: Any
fields_by_number = ... # type: Any
fields_by_name = ... # type: Any
nested_types = ... # type: Any
nested_types_by_name = ... # type: Any
enum_types = ... # type: Any
enum_types_by_name = ... # type: Any
enum_values_by_name = ... # type: Any
extensions = ... # type: Any
extensions_by_name = ... # type: Any
is_extendable = ... # type: Any
extension_ranges = ... # type: Any
oneofs = ... # type: Any
oneofs_by_name = ... # type: Any
syntax = ... # type: Any
fields: Any
fields_by_number: Any
fields_by_name: Any
nested_types: Any
nested_types_by_name: Any
enum_types: Any
enum_types_by_name: Any
enum_values_by_name: Any
extensions: Any
extensions_by_name: Any
is_extendable: Any
extension_ranges: Any
oneofs: Any
oneofs_by_name: Any
syntax: Any
def __init__(self, name, full_name, filename, containing_type, fields, nested_types, enum_types, extensions, options=..., is_extendable=..., extension_ranges=..., oneofs=..., file=..., serialized_start=..., serialized_end=..., syntax=...) -> None: ...
def EnumValueName(self, enum, value): ...
def CopyToProto(self, proto): ...
def GetOptions(self) -> MessageOptions: ...
class FieldDescriptor(DescriptorBase):
TYPE_DOUBLE = ... # type: Any
TYPE_FLOAT = ... # type: Any
TYPE_INT64 = ... # type: Any
TYPE_UINT64 = ... # type: Any
TYPE_INT32 = ... # type: Any
TYPE_FIXED64 = ... # type: Any
TYPE_FIXED32 = ... # type: Any
TYPE_BOOL = ... # type: Any
TYPE_STRING = ... # type: Any
TYPE_GROUP = ... # type: Any
TYPE_MESSAGE = ... # type: Any
TYPE_BYTES = ... # type: Any
TYPE_UINT32 = ... # type: Any
TYPE_ENUM = ... # type: Any
TYPE_SFIXED32 = ... # type: Any
TYPE_SFIXED64 = ... # type: Any
TYPE_SINT32 = ... # type: Any
TYPE_SINT64 = ... # type: Any
MAX_TYPE = ... # type: Any
CPPTYPE_INT32 = ... # type: Any
CPPTYPE_INT64 = ... # type: Any
CPPTYPE_UINT32 = ... # type: Any
CPPTYPE_UINT64 = ... # type: Any
CPPTYPE_DOUBLE = ... # type: Any
CPPTYPE_FLOAT = ... # type: Any
CPPTYPE_BOOL = ... # type: Any
CPPTYPE_ENUM = ... # type: Any
CPPTYPE_STRING = ... # type: Any
CPPTYPE_MESSAGE = ... # type: Any
MAX_CPPTYPE = ... # type: Any
LABEL_OPTIONAL = ... # type: Any
LABEL_REQUIRED = ... # type: Any
LABEL_REPEATED = ... # type: Any
MAX_LABEL = ... # type: Any
MAX_FIELD_NUMBER = ... # type: Any
FIRST_RESERVED_FIELD_NUMBER = ... # type: Any
LAST_RESERVED_FIELD_NUMBER = ... # type: Any
TYPE_DOUBLE: Any
TYPE_FLOAT: Any
TYPE_INT64: Any
TYPE_UINT64: Any
TYPE_INT32: Any
TYPE_FIXED64: Any
TYPE_FIXED32: Any
TYPE_BOOL: Any
TYPE_STRING: Any
TYPE_GROUP: Any
TYPE_MESSAGE: Any
TYPE_BYTES: Any
TYPE_UINT32: Any
TYPE_ENUM: Any
TYPE_SFIXED32: Any
TYPE_SFIXED64: Any
TYPE_SINT32: Any
TYPE_SINT64: Any
MAX_TYPE: Any
CPPTYPE_INT32: Any
CPPTYPE_INT64: Any
CPPTYPE_UINT32: Any
CPPTYPE_UINT64: Any
CPPTYPE_DOUBLE: Any
CPPTYPE_FLOAT: Any
CPPTYPE_BOOL: Any
CPPTYPE_ENUM: Any
CPPTYPE_STRING: Any
CPPTYPE_MESSAGE: Any
MAX_CPPTYPE: Any
LABEL_OPTIONAL: Any
LABEL_REQUIRED: Any
LABEL_REPEATED: Any
MAX_LABEL: Any
MAX_FIELD_NUMBER: Any
FIRST_RESERVED_FIELD_NUMBER: Any
LAST_RESERVED_FIELD_NUMBER: Any
def __new__(cls, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
cpp_type = ... # type: Any
label = ... # type: Any
has_default_value = ... # type: Any
default_value = ... # type: Any
containing_type = ... # type: Any
message_type = ... # type: Any
enum_type = ... # type: Any
is_extension = ... # type: Any
extension_scope = ... # type: Any
containing_oneof = ... # type: Any
name: Any
full_name: Any
index: Any
number: Any
type: Any
cpp_type: Any
label: Any
has_default_value: Any
default_value: Any
containing_type: Any
message_type: Any
enum_type: Any
is_extension: Any
extension_scope: Any
containing_oneof: Any
def __init__(self, name, full_name, index, number, type, cpp_type, label, default_value, message_type, enum_type, containing_type, is_extension, extension_scope, options=..., file=..., has_default_value=..., containing_oneof=...) -> None: ...
@staticmethod
def ProtoTypeToCppProtoType(proto_type): ...
@@ -115,65 +115,65 @@ class FieldDescriptor(DescriptorBase):
class EnumDescriptor(_NestedDescriptorBase):
def __new__(cls, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...): ...
values = ... # type: Any
values_by_name = ... # type: Any
values_by_number = ... # type: Any
values: Any
values_by_name: Any
values_by_number: Any
def __init__(self, name, full_name, filename, values, containing_type=..., options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...
def CopyToProto(self, proto): ...
def GetOptions(self) -> EnumOptions: ...
class EnumValueDescriptor(DescriptorBase):
def __new__(cls, name, index, number, type=..., options=...): ...
name = ... # type: Any
index = ... # type: Any
number = ... # type: Any
type = ... # type: Any
name: Any
index: Any
number: Any
type: Any
def __init__(self, name, index, number, type=..., options=...) -> None: ...
def GetOptions(self) -> EnumValueOptions: ...
class OneofDescriptor:
def __new__(cls, name, full_name, index, containing_type, fields): ...
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_type = ... # type: Any
fields = ... # type: Any
name: Any
full_name: Any
index: Any
containing_type: Any
fields: Any
def __init__(self, name, full_name, index, containing_type, fields) -> None: ...
def GetOptions(self) -> OneofOptions: ...
class ServiceDescriptor(_NestedDescriptorBase):
index = ... # type: Any
methods = ... # type: Any
methods_by_name = ... # type: Any
index: Any
methods: Any
methods_by_name: Any
def __init__(self, name, full_name, index, methods, options=..., file=..., serialized_start=..., serialized_end=...) -> None: ...
def FindMethodByName(self, name): ...
def CopyToProto(self, proto): ...
def GetOptions(self) -> ServiceOptions: ...
class MethodDescriptor(DescriptorBase):
name = ... # type: Any
full_name = ... # type: Any
index = ... # type: Any
containing_service = ... # type: Any
input_type = ... # type: Any
output_type = ... # type: Any
name: Any
full_name: Any
index: Any
containing_service: Any
input_type: Any
output_type: Any
def __init__(self, name, full_name, index, containing_service, input_type, output_type, options=...) -> None: ...
def GetOptions(self) -> MethodOptions: ...
class FileDescriptor(DescriptorBase):
def __new__(cls, name, package, options=..., serialized_pb=..., dependencies=..., public_dependencies=..., syntax=..., pool=...): ...
_options = ... # type: Any
pool = ... # type: Any
message_types_by_name = ... # type: Any
name = ... # type: Any
package = ... # type: Any
syntax = ... # type: Any
serialized_pb = ... # type: Any
enum_types_by_name = ... # type: Any
extensions_by_name = ... # type: Any
services_by_name = ... # type: Any
dependencies = ... # type: Any
public_dependencies = ... # type: Any
_options: Any
pool: Any
message_types_by_name: Any
name: Any
package: Any
syntax: Any
serialized_pb: Any
enum_types_by_name: Any
extensions_by_name: Any
services_by_name: Any
dependencies: Any
public_dependencies: Any
def __init__(self, name, package, options=..., serialized_pb=..., dependencies=..., public_dependencies=..., syntax=..., pool=...) -> None: ...
def CopyToProto(self, proto): ...
def GetOptions(self) -> FileOptions: ...

View File

@@ -29,12 +29,12 @@ class FileDescriptorSet(Message):
class FileDescriptorProto(Message):
name = ... # type: Text
package = ... # type: Text
dependency = ... # type: RepeatedScalarFieldContainer[Text]
public_dependency = ... # type: RepeatedScalarFieldContainer[int]
weak_dependency = ... # type: RepeatedScalarFieldContainer[int]
syntax = ... # type: Text
name: Text
package: Text
dependency: RepeatedScalarFieldContainer[Text]
public_dependency: RepeatedScalarFieldContainer[int]
weak_dependency: RepeatedScalarFieldContainer[int]
syntax: Text
@property
def message_type(
@@ -80,8 +80,8 @@ class FileDescriptorProto(Message):
class DescriptorProto(Message):
class ExtensionRange(Message):
start = ... # type: int
end = ... # type: int
start: int
end: int
@property
def options(self) -> ExtensionRangeOptions: ...
@@ -96,8 +96,8 @@ class DescriptorProto(Message):
def FromString(cls, s: bytes) -> DescriptorProto.ExtensionRange: ...
class ReservedRange(Message):
start = ... # type: int
end = ... # type: int
start: int
end: int
def __init__(self,
start: Optional[int] = ...,
@@ -106,8 +106,8 @@ class DescriptorProto(Message):
@classmethod
def FromString(cls, s: bytes) -> DescriptorProto.ReservedRange: ...
name = ... # type: Text
reserved_name = ... # type: RepeatedScalarFieldContainer[Text]
name: Text
reserved_name: RepeatedScalarFieldContainer[Text]
@property
def field(
@@ -227,15 +227,15 @@ class FieldDescriptorProto(Message):
LABEL_OPTIONAL: Label
LABEL_REQUIRED: Label
LABEL_REPEATED: Label
name = ... # type: Text
number = ... # type: int
label = ... # type: FieldDescriptorProto.Label
type = ... # type: FieldDescriptorProto.Type
type_name = ... # type: Text
extendee = ... # type: Text
default_value = ... # type: Text
oneof_index = ... # type: int
json_name = ... # type: Text
name: Text
number: int
label: FieldDescriptorProto.Label
type: FieldDescriptorProto.Type
type_name: Text
extendee: Text
default_value: Text
oneof_index: int
json_name: Text
@property
def options(self) -> FieldOptions: ...
@@ -258,7 +258,7 @@ class FieldDescriptorProto(Message):
class OneofDescriptorProto(Message):
name = ... # type: Text
name: Text
@property
def options(self) -> OneofOptions: ...
@@ -275,8 +275,8 @@ class OneofDescriptorProto(Message):
class EnumDescriptorProto(Message):
class EnumReservedRange(Message):
start = ... # type: int
end = ... # type: int
start: int
end: int
def __init__(self,
start: Optional[int] = ...,
@@ -286,8 +286,8 @@ class EnumDescriptorProto(Message):
@classmethod
def FromString(
cls, s: bytes) -> EnumDescriptorProto.EnumReservedRange: ...
name = ... # type: Text
reserved_name = ... # type: RepeatedScalarFieldContainer[Text]
name: Text
reserved_name: RepeatedScalarFieldContainer[Text]
@property
def value(
@@ -313,8 +313,8 @@ class EnumDescriptorProto(Message):
class EnumValueDescriptorProto(Message):
name = ... # type: Text
number = ... # type: int
name: Text
number: int
@property
def options(self) -> EnumValueOptions: ...
@@ -330,7 +330,7 @@ class EnumValueDescriptorProto(Message):
class ServiceDescriptorProto(Message):
name = ... # type: Text
name: Text
@property
def method(
@@ -350,11 +350,11 @@ class ServiceDescriptorProto(Message):
class MethodDescriptorProto(Message):
name = ... # type: Text
input_type = ... # type: Text
output_type = ... # type: Text
client_streaming = ... # type: bool
server_streaming = ... # type: bool
name: Text
input_type: Text
output_type: Text
client_streaming: bool
server_streaming: bool
@property
def options(self) -> MethodOptions: ...
@@ -393,24 +393,24 @@ class FileOptions(Message):
SPEED: OptimizeMode
CODE_SIZE: OptimizeMode
LITE_RUNTIME: OptimizeMode
java_package = ... # type: Text
java_outer_classname = ... # type: Text
java_multiple_files = ... # type: bool
java_generate_equals_and_hash = ... # type: bool
java_string_check_utf8 = ... # type: bool
optimize_for = ... # type: FileOptions.OptimizeMode
go_package = ... # type: Text
cc_generic_services = ... # type: bool
java_generic_services = ... # type: bool
py_generic_services = ... # type: bool
php_generic_services = ... # type: bool
deprecated = ... # type: bool
cc_enable_arenas = ... # type: bool
objc_class_prefix = ... # type: Text
csharp_namespace = ... # type: Text
swift_prefix = ... # type: Text
php_class_prefix = ... # type: Text
php_namespace = ... # type: Text
java_package: Text
java_outer_classname: Text
java_multiple_files: bool
java_generate_equals_and_hash: bool
java_string_check_utf8: bool
optimize_for: FileOptions.OptimizeMode
go_package: Text
cc_generic_services: bool
java_generic_services: bool
py_generic_services: bool
php_generic_services: bool
deprecated: bool
cc_enable_arenas: bool
objc_class_prefix: Text
csharp_namespace: Text
swift_prefix: Text
php_class_prefix: Text
php_namespace: Text
@property
def uninterpreted_option(
@@ -443,10 +443,10 @@ class FileOptions(Message):
class MessageOptions(Message):
message_set_wire_format = ... # type: bool
no_standard_descriptor_accessor = ... # type: bool
deprecated = ... # type: bool
map_entry = ... # type: bool
message_set_wire_format: bool
no_standard_descriptor_accessor: bool
deprecated: bool
map_entry: bool
@property
def uninterpreted_option(
@@ -505,12 +505,12 @@ class FieldOptions(Message):
JS_NORMAL: JSType
JS_STRING: JSType
JS_NUMBER: JSType
ctype = ... # type: FieldOptions.CType
packed = ... # type: bool
jstype = ... # type: FieldOptions.JSType
lazy = ... # type: bool
deprecated = ... # type: bool
weak = ... # type: bool
ctype: FieldOptions.CType
packed: bool
jstype: FieldOptions.JSType
lazy: bool
deprecated: bool
weak: bool
@property
def uninterpreted_option(
@@ -545,8 +545,8 @@ class OneofOptions(Message):
class EnumOptions(Message):
allow_alias = ... # type: bool
deprecated = ... # type: bool
allow_alias: bool
deprecated: bool
@property
def uninterpreted_option(
@@ -563,7 +563,7 @@ class EnumOptions(Message):
class EnumValueOptions(Message):
deprecated = ... # type: bool
deprecated: bool
@property
def uninterpreted_option(
@@ -579,7 +579,7 @@ class EnumValueOptions(Message):
class ServiceOptions(Message):
deprecated = ... # type: bool
deprecated: bool
@property
def uninterpreted_option(
@@ -615,8 +615,8 @@ class MethodOptions(Message):
IDEMPOTENCY_UNKNOWN: IdempotencyLevel
NO_SIDE_EFFECTS: IdempotencyLevel
IDEMPOTENT: IdempotencyLevel
deprecated = ... # type: bool
idempotency_level = ... # type: MethodOptions.IdempotencyLevel
deprecated: bool
idempotency_level: MethodOptions.IdempotencyLevel
@property
def uninterpreted_option(
@@ -635,8 +635,8 @@ class MethodOptions(Message):
class UninterpretedOption(Message):
class NamePart(Message):
name_part = ... # type: Text
is_extension = ... # type: bool
name_part: Text
is_extension: bool
def __init__(self,
name_part: Text,
@@ -645,12 +645,12 @@ class UninterpretedOption(Message):
@classmethod
def FromString(cls, s: bytes) -> UninterpretedOption.NamePart: ...
identifier_value = ... # type: Text
positive_int_value = ... # type: int
negative_int_value = ... # type: int
double_value = ... # type: float
string_value = ... # type: bytes
aggregate_value = ... # type: Text
identifier_value: Text
positive_int_value: int
negative_int_value: int
double_value: float
string_value: bytes
aggregate_value: Text
@property
def name(
@@ -673,11 +673,11 @@ class UninterpretedOption(Message):
class SourceCodeInfo(Message):
class Location(Message):
path = ... # type: RepeatedScalarFieldContainer[int]
span = ... # type: RepeatedScalarFieldContainer[int]
leading_comments = ... # type: Text
trailing_comments = ... # type: Text
leading_detached_comments = ... # type: RepeatedScalarFieldContainer[Text]
path: RepeatedScalarFieldContainer[int]
span: RepeatedScalarFieldContainer[int]
leading_comments: Text
trailing_comments: Text
leading_detached_comments: RepeatedScalarFieldContainer[Text]
def __init__(self,
path: Optional[Iterable[int]] = ...,
@@ -705,10 +705,10 @@ class SourceCodeInfo(Message):
class GeneratedCodeInfo(Message):
class Annotation(Message):
path = ... # type: RepeatedScalarFieldContainer[int]
source_file = ... # type: Text
begin = ... # type: int
end = ... # type: int
path: RepeatedScalarFieldContainer[int]
source_file: Text
begin: int
end: int
def __init__(self,
path: Optional[Iterable[int]] = ...,

View File

@@ -9,8 +9,8 @@ from typing import (
class Duration(Message, well_known_types.Duration):
seconds = ... # type: int
nanos = ... # type: int
seconds: int
nanos: int
def __init__(self,
seconds: Optional[int] = ...,

View File

@@ -14,7 +14,7 @@ from typing import (
class FieldMask(Message, well_known_types.FieldMask):
paths = ... # type: RepeatedScalarFieldContainer[Text]
paths: RepeatedScalarFieldContainer[Text]
def __init__(self,
paths: Optional[Iterable[Text]] = ...,

View File

@@ -3,28 +3,28 @@ from typing import Any
def ReadTag(buffer, pos): ...
def EnumDecoder(field_number, is_repeated, is_packed, key, new_default): ...
Int32Decoder = ... # type: Any
Int64Decoder = ... # type: Any
UInt32Decoder = ... # type: Any
UInt64Decoder = ... # type: Any
SInt32Decoder = ... # type: Any
SInt64Decoder = ... # type: Any
Fixed32Decoder = ... # type: Any
Fixed64Decoder = ... # type: Any
SFixed32Decoder = ... # type: Any
SFixed64Decoder = ... # type: Any
FloatDecoder = ... # type: Any
DoubleDecoder = ... # type: Any
BoolDecoder = ... # type: Any
Int32Decoder: Any
Int64Decoder: Any
UInt32Decoder: Any
UInt64Decoder: Any
SInt32Decoder: Any
SInt64Decoder: Any
Fixed32Decoder: Any
Fixed64Decoder: Any
SFixed32Decoder: Any
SFixed64Decoder: Any
FloatDecoder: Any
DoubleDecoder: Any
BoolDecoder: Any
def StringDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def BytesDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def GroupDecoder(field_number, is_repeated, is_packed, key, new_default): ...
def MessageDecoder(field_number, is_repeated, is_packed, key, new_default): ...
MESSAGE_SET_ITEM_TAG = ... # type: Any
MESSAGE_SET_ITEM_TAG: Any
def MessageSetItemDecoder(extensions_by_number): ...
def MapDecoder(field_descriptor, new_default, is_message_map): ...
SkipField = ... # type: Any
SkipField: Any

View File

@@ -1,11 +1,11 @@
from typing import Any
Int32Sizer = ... # type: Any
UInt32Sizer = ... # type: Any
SInt32Sizer = ... # type: Any
Fixed32Sizer = ... # type: Any
Fixed64Sizer = ... # type: Any
BoolSizer = ... # type: Any
Int32Sizer: Any
UInt32Sizer: Any
SInt32Sizer: Any
Fixed32Sizer: Any
Fixed64Sizer: Any
BoolSizer: Any
def StringSizer(field_number, is_repeated, is_packed): ...
def BytesSizer(field_number, is_repeated, is_packed): ...
@@ -15,15 +15,15 @@ def MessageSetItemSizer(field_number): ...
def MapSizer(field_descriptor): ...
def TagBytes(field_number, wire_type): ...
Int32Encoder = ... # type: Any
UInt32Encoder = ... # type: Any
SInt32Encoder = ... # type: Any
Fixed32Encoder = ... # type: Any
Fixed64Encoder = ... # type: Any
SFixed32Encoder = ... # type: Any
SFixed64Encoder = ... # type: Any
FloatEncoder = ... # type: Any
DoubleEncoder = ... # type: Any
Int32Encoder: Any
UInt32Encoder: Any
SInt32Encoder: Any
Fixed32Encoder: Any
Fixed64Encoder: Any
SFixed32Encoder: Any
SFixed64Encoder: Any
FloatEncoder: Any
DoubleEncoder: Any
def BoolEncoder(field_number, is_repeated, is_packed): ...
def StringEncoder(field_number, is_repeated, is_packed): ...

View File

@@ -1,23 +1,23 @@
from typing import Any
TAG_TYPE_BITS = ... # type: Any
TAG_TYPE_MASK = ... # type: Any
WIRETYPE_VARINT = ... # type: Any
WIRETYPE_FIXED64 = ... # type: Any
WIRETYPE_LENGTH_DELIMITED = ... # type: Any
WIRETYPE_START_GROUP = ... # type: Any
WIRETYPE_END_GROUP = ... # type: Any
WIRETYPE_FIXED32 = ... # type: Any
INT32_MAX = ... # type: Any
INT32_MIN = ... # type: Any
UINT32_MAX = ... # type: Any
INT64_MAX = ... # type: Any
INT64_MIN = ... # type: Any
UINT64_MAX = ... # type: Any
FORMAT_UINT32_LITTLE_ENDIAN = ... # type: Any
FORMAT_UINT64_LITTLE_ENDIAN = ... # type: Any
FORMAT_FLOAT_LITTLE_ENDIAN = ... # type: Any
FORMAT_DOUBLE_LITTLE_ENDIAN = ... # type: Any
TAG_TYPE_BITS: Any
TAG_TYPE_MASK: Any
WIRETYPE_VARINT: Any
WIRETYPE_FIXED64: Any
WIRETYPE_LENGTH_DELIMITED: Any
WIRETYPE_START_GROUP: Any
WIRETYPE_END_GROUP: Any
WIRETYPE_FIXED32: Any
INT32_MAX: Any
INT32_MIN: Any
UINT32_MAX: Any
INT64_MAX: Any
INT64_MIN: Any
UINT64_MAX: Any
FORMAT_UINT32_LITTLE_ENDIAN: Any
FORMAT_UINT64_LITTLE_ENDIAN: Any
FORMAT_FLOAT_LITTLE_ENDIAN: Any
FORMAT_DOUBLE_LITTLE_ENDIAN: Any
def PackTag(field_number, wire_type): ...
def UnpackTag(tag): ...
@@ -45,6 +45,6 @@ def MessageByteSize(field_number, message): ...
def MessageSetItemByteSize(field_number, msg): ...
def TagByteSize(field_number): ...
NON_PACKABLE_TYPES = ... # type: Any
NON_PACKABLE_TYPES: Any
def IsTypePackable(field_type): ...

View File

@@ -61,8 +61,8 @@ E_PROTO2_MAP_ENUM_EXTRA: Proto2MapEnumPlusExtra
class TestEnumMap(Message):
class KnownMapFieldEntry(Message):
key = ... # type: int
value = ... # type: Proto2MapEnum
key: int
value: Proto2MapEnum
def __init__(self,
key: Optional[int] = ...,
@@ -73,8 +73,8 @@ class TestEnumMap(Message):
def FromString(cls, s: bytes) -> TestEnumMap.KnownMapFieldEntry: ...
class UnknownMapFieldEntry(Message):
key = ... # type: int
value = ... # type: Proto2MapEnum
key: int
value: Proto2MapEnum
def __init__(self,
key: Optional[int] = ...,
@@ -102,8 +102,8 @@ class TestEnumMap(Message):
class TestEnumMapPlusExtra(Message):
class KnownMapFieldEntry(Message):
key = ... # type: int
value = ... # type: Proto2MapEnumPlusExtra
key: int
value: Proto2MapEnumPlusExtra
def __init__(self,
key: Optional[int] = ...,
@@ -114,8 +114,8 @@ class TestEnumMapPlusExtra(Message):
def FromString(cls, s: bytes) -> TestEnumMapPlusExtra.KnownMapFieldEntry: ...
class UnknownMapFieldEntry(Message):
key = ... # type: int
value = ... # type: Proto2MapEnumPlusExtra
key: int
value: Proto2MapEnumPlusExtra
def __init__(self,
key: Optional[int] = ...,
@@ -143,8 +143,8 @@ class TestEnumMapPlusExtra(Message):
class TestImportEnumMap(Message):
class ImportEnumAmpEntry(Message):
key = ... # type: int
value = ... # type: ImportEnumForMap
key: int
value: ImportEnumForMap
def __init__(self,
key: Optional[int] = ...,
@@ -168,8 +168,8 @@ class TestImportEnumMap(Message):
class TestIntIntMap(Message):
class MEntry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -193,7 +193,7 @@ class TestIntIntMap(Message):
class TestMaps(Message):
class MInt32Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -207,7 +207,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MInt32Entry: ...
class MInt64Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -221,7 +221,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MInt64Entry: ...
class MUint32Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -235,7 +235,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MUint32Entry: ...
class MUint64Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -249,7 +249,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MUint64Entry: ...
class MSint32Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -263,7 +263,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MSint32Entry: ...
class MSint64Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -277,7 +277,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MSint64Entry: ...
class MFixed32Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -291,7 +291,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MFixed32Entry: ...
class MFixed64Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -305,7 +305,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MFixed64Entry: ...
class MSfixed32Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -319,7 +319,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MSfixed32Entry: ...
class MSfixed64Entry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestIntIntMap: ...
@@ -333,7 +333,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MSfixed64Entry: ...
class MBoolEntry(Message):
key = ... # type: bool
key: bool
@property
def value(self) -> TestIntIntMap: ...
@@ -347,7 +347,7 @@ class TestMaps(Message):
def FromString(cls, s: bytes) -> TestMaps.MBoolEntry: ...
class MStringEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> TestIntIntMap: ...

View File

@@ -46,8 +46,8 @@ MAP_ENUM_BAZ: MapEnum
class TestMap(Message):
class MapInt32Int32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -58,8 +58,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32Int32Entry: ...
class MapInt64Int64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -70,8 +70,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt64Int64Entry: ...
class MapUint32Uint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -82,8 +82,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapUint32Uint32Entry: ...
class MapUint64Uint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -94,8 +94,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapUint64Uint64Entry: ...
class MapSint32Sint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -106,8 +106,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapSint32Sint32Entry: ...
class MapSint64Sint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -118,8 +118,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapSint64Sint64Entry: ...
class MapFixed32Fixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -130,8 +130,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapFixed32Fixed32Entry: ...
class MapFixed64Fixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -142,8 +142,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapFixed64Fixed64Entry: ...
class MapSfixed32Sfixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -154,8 +154,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapSfixed32Sfixed32Entry: ...
class MapSfixed64Sfixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -166,8 +166,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapSfixed64Sfixed64Entry: ...
class MapInt32FloatEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -178,8 +178,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32FloatEntry: ...
class MapInt32DoubleEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -190,8 +190,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32DoubleEntry: ...
class MapBoolBoolEntry(Message):
key = ... # type: bool
value = ... # type: bool
key: bool
value: bool
def __init__(self,
key: Optional[bool] = ...,
@@ -202,8 +202,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapBoolBoolEntry: ...
class MapStringStringEntry(Message):
key = ... # type: Text
value = ... # type: Text
key: Text
value: Text
def __init__(self,
key: Optional[Text] = ...,
@@ -214,8 +214,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapStringStringEntry: ...
class MapInt32BytesEntry(Message):
key = ... # type: int
value = ... # type: bytes
key: int
value: bytes
def __init__(self,
key: Optional[int] = ...,
@@ -226,8 +226,8 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32BytesEntry: ...
class MapInt32EnumEntry(Message):
key = ... # type: int
value = ... # type: MapEnum
key: int
value: MapEnum
def __init__(self,
key: Optional[int] = ...,
@@ -238,7 +238,7 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32EnumEntry: ...
class MapInt32ForeignMessageEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> ForeignMessage1: ...
@@ -252,7 +252,7 @@ class TestMap(Message):
def FromString(cls, s: bytes) -> TestMap.MapInt32ForeignMessageEntry: ...
class MapStringForeignMessageEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> ForeignMessage1: ...
@@ -267,7 +267,7 @@ class TestMap(Message):
cls, s: bytes) -> TestMap.MapStringForeignMessageEntry: ...
class MapInt32AllTypesEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestAllTypes: ...
@@ -381,7 +381,7 @@ class TestMapSubmessage(Message):
class TestMessageMap(Message):
class MapInt32MessageEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestAllTypes: ...
@@ -408,8 +408,8 @@ class TestMessageMap(Message):
class TestSameTypeMap(Message):
class Map1Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -420,8 +420,8 @@ class TestSameTypeMap(Message):
def FromString(cls, s: bytes) -> TestSameTypeMap.Map1Entry: ...
class Map2Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -449,7 +449,7 @@ class TestSameTypeMap(Message):
class TestRequiredMessageMap(Message):
class MapFieldEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> TestRequired: ...
@@ -477,8 +477,8 @@ class TestRequiredMessageMap(Message):
class TestArenaMap(Message):
class MapInt32Int32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -489,8 +489,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt32Int32Entry: ...
class MapInt64Int64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -501,8 +501,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt64Int64Entry: ...
class MapUint32Uint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -513,8 +513,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapUint32Uint32Entry: ...
class MapUint64Uint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -525,8 +525,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapUint64Uint64Entry: ...
class MapSint32Sint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -537,8 +537,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapSint32Sint32Entry: ...
class MapSint64Sint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -549,8 +549,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapSint64Sint64Entry: ...
class MapFixed32Fixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -561,8 +561,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapFixed32Fixed32Entry: ...
class MapFixed64Fixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -573,8 +573,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapFixed64Fixed64Entry: ...
class MapSfixed32Sfixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -586,8 +586,8 @@ class TestArenaMap(Message):
cls, s: bytes) -> TestArenaMap.MapSfixed32Sfixed32Entry: ...
class MapSfixed64Sfixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -599,8 +599,8 @@ class TestArenaMap(Message):
cls, s: bytes) -> TestArenaMap.MapSfixed64Sfixed64Entry: ...
class MapInt32FloatEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -611,8 +611,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt32FloatEntry: ...
class MapInt32DoubleEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -623,8 +623,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt32DoubleEntry: ...
class MapBoolBoolEntry(Message):
key = ... # type: bool
value = ... # type: bool
key: bool
value: bool
def __init__(self,
key: Optional[bool] = ...,
@@ -635,8 +635,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapBoolBoolEntry: ...
class MapStringStringEntry(Message):
key = ... # type: Text
value = ... # type: Text
key: Text
value: Text
def __init__(self,
key: Optional[Text] = ...,
@@ -647,8 +647,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapStringStringEntry: ...
class MapInt32BytesEntry(Message):
key = ... # type: int
value = ... # type: bytes
key: int
value: bytes
def __init__(self,
key: Optional[int] = ...,
@@ -659,8 +659,8 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt32BytesEntry: ...
class MapInt32EnumEntry(Message):
key = ... # type: int
value = ... # type: MapEnum
key: int
value: MapEnum
def __init__(self,
key: Optional[int] = ...,
@@ -671,7 +671,7 @@ class TestArenaMap(Message):
def FromString(cls, s: bytes) -> TestArenaMap.MapInt32EnumEntry: ...
class MapInt32ForeignMessageEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> ForeignMessage1: ...
@@ -686,7 +686,7 @@ class TestArenaMap(Message):
cls, s: bytes) -> TestArenaMap.MapInt32ForeignMessageEntry: ...
class MapInt32ForeignMessageNoArenaEntry(Message):
key = ... # type: int
key: int
@property
def value(self) -> ForeignMessage: ...
@@ -803,7 +803,7 @@ class MessageContainingEnumCalledType(Message):
TYPE_FOO: Type
class TypeEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> MessageContainingEnumCalledType: ...
@@ -832,8 +832,8 @@ class MessageContainingEnumCalledType(Message):
class MessageContainingMapCalledEntry(Message):
class EntryEntry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -858,7 +858,7 @@ class MessageContainingMapCalledEntry(Message):
class TestRecursiveMapMessage(Message):
class AEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> TestRecursiveMapMessage: ...

View File

@@ -14,7 +14,7 @@ class _ExtensionDict:
def __setitem__(self, extension_handle: DescriptorBase, value: Any) -> None: ...
class Message:
DESCRIPTOR = ... # type: Any
DESCRIPTOR: Any
def __deepcopy__(self, memo=...): ...
def __eq__(self, other_msg): ...
def __ne__(self, other_msg): ...

View File

@@ -5,7 +5,7 @@ from .descriptor import Descriptor
from .descriptor_pool import DescriptorPool
class MessageFactory:
pool = ... # type: Any
pool: Any
def __init__(self, pool: Optional[DescriptorPool] = ...) -> None: ...
def GetPrototype(self, descriptor: Descriptor) -> Type[Message]: ...
def GetMessages(self, files: Iterable[bytes]) -> Dict[bytes, Type[Message]]: ...

View File

@@ -8,7 +8,7 @@ from typing import (
class SourceContext(Message):
file_name = ... # type: Text
file_name: Text
def __init__(self,
file_name: Optional[Text] = ...,

View File

@@ -40,7 +40,7 @@ NULL_VALUE: NullValue
class Struct(Message, well_known_types.Struct):
class FieldsEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> Value: ...
@@ -65,10 +65,10 @@ class Struct(Message, well_known_types.Struct):
class _Value(Message):
null_value = ... # type: NullValue
number_value = ... # type: float
string_value = ... # type: Text
bool_value = ... # type: bool
null_value: NullValue
number_value: float
string_value: Text
bool_value: bool
@property
def struct_value(self) -> Struct: ...

View File

@@ -65,7 +65,7 @@ class TestAllTypesProto2(Message):
NEG: NestedEnum
class NestedMessage(Message):
a = ... # type: int
a: int
@property
def corecursive(self) -> TestAllTypesProto2: ...
@@ -79,8 +79,8 @@ class TestAllTypesProto2(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto2.NestedMessage: ...
class MapInt32Int32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -92,8 +92,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapInt32Int32Entry: ...
class MapInt64Int64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -105,8 +105,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapInt64Int64Entry: ...
class MapUint32Uint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -118,8 +118,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapUint32Uint32Entry: ...
class MapUint64Uint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -131,8 +131,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapUint64Uint64Entry: ...
class MapSint32Sint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -144,8 +144,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapSint32Sint32Entry: ...
class MapSint64Sint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -157,8 +157,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapSint64Sint64Entry: ...
class MapFixed32Fixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -170,8 +170,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapFixed32Fixed32Entry: ...
class MapFixed64Fixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -183,8 +183,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapFixed64Fixed64Entry: ...
class MapSfixed32Sfixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -196,8 +196,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapSfixed32Sfixed32Entry: ...
class MapSfixed64Sfixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -209,8 +209,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapSfixed64Sfixed64Entry: ...
class MapInt32FloatEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -222,8 +222,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapInt32FloatEntry: ...
class MapInt32DoubleEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -235,8 +235,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapInt32DoubleEntry: ...
class MapBoolBoolEntry(Message):
key = ... # type: bool
value = ... # type: bool
key: bool
value: bool
def __init__(self,
key: Optional[bool] = ...,
@@ -247,8 +247,8 @@ class TestAllTypesProto2(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto2.MapBoolBoolEntry: ...
class MapStringStringEntry(Message):
key = ... # type: Text
value = ... # type: Text
key: Text
value: Text
def __init__(self,
key: Optional[Text] = ...,
@@ -260,8 +260,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringStringEntry: ...
class MapStringBytesEntry(Message):
key = ... # type: Text
value = ... # type: bytes
key: Text
value: bytes
def __init__(self,
key: Optional[Text] = ...,
@@ -273,7 +273,7 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringBytesEntry: ...
class MapStringNestedMessageEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> TestAllTypesProto2.NestedMessage: ...
@@ -288,7 +288,7 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringNestedMessageEntry: ...
class MapStringForeignMessageEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> ForeignMessageProto2: ...
@@ -303,8 +303,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringForeignMessageEntry: ...
class MapStringNestedEnumEntry(Message):
key = ... # type: Text
value = ... # type: TestAllTypesProto2.NestedEnum
key: Text
value: TestAllTypesProto2.NestedEnum
def __init__(self,
key: Optional[Text] = ...,
@@ -316,8 +316,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringNestedEnumEntry: ...
class MapStringForeignEnumEntry(Message):
key = ... # type: Text
value = ... # type: ForeignEnumProto2
key: Text
value: ForeignEnumProto2
def __init__(self,
key: Optional[Text] = ...,
@@ -329,8 +329,8 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MapStringForeignEnumEntry: ...
class Data(Message):
group_int32 = ... # type: int
group_uint32 = ... # type: int
group_int32: int
group_uint32: int
def __init__(self,
group_int32: Optional[int] = ...,
@@ -350,7 +350,7 @@ class TestAllTypesProto2(Message):
cls, s: bytes) -> TestAllTypesProto2.MessageSetCorrect: ...
class MessageSetCorrectExtension1(Message):
bytes = ... # type: Text
bytes: Text
def __init__(self,
bytes: Optional[Text] = ...,
@@ -361,7 +361,7 @@ class TestAllTypesProto2(Message):
cls, s: builtins.bytes) -> TestAllTypesProto2.MessageSetCorrectExtension1: ...
class MessageSetCorrectExtension2(Message):
i = ... # type: int
i: int
def __init__(self,
i: Optional[int] = ...,
@@ -370,70 +370,70 @@ class TestAllTypesProto2(Message):
@classmethod
def FromString(
cls, s: bytes) -> TestAllTypesProto2.MessageSetCorrectExtension2: ...
optional_int32 = ... # type: int
optional_int64 = ... # type: int
optional_uint32 = ... # type: int
optional_uint64 = ... # type: int
optional_sint32 = ... # type: int
optional_sint64 = ... # type: int
optional_fixed32 = ... # type: int
optional_fixed64 = ... # type: int
optional_sfixed32 = ... # type: int
optional_sfixed64 = ... # type: int
optional_float = ... # type: float
optional_double = ... # type: float
optional_bool = ... # type: bool
optional_string = ... # type: Text
optional_bytes = ... # type: bytes
optional_nested_enum = ... # type: TestAllTypesProto2.NestedEnum
optional_foreign_enum = ... # type: ForeignEnumProto2
optional_string_piece = ... # type: Text
optional_cord = ... # type: Text
repeated_int32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_int64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_uint32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_uint64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sint32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sint64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_fixed32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_fixed64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sfixed32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sfixed64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_float = ... # type: RepeatedScalarFieldContainer[float]
repeated_double = ... # type: RepeatedScalarFieldContainer[float]
repeated_bool = ... # type: RepeatedScalarFieldContainer[bool]
repeated_string = ... # type: RepeatedScalarFieldContainer[Text]
repeated_bytes = ... # type: RepeatedScalarFieldContainer[bytes]
repeated_nested_enum = ... # type: RepeatedScalarFieldContainer[TestAllTypesProto2.NestedEnum]
repeated_foreign_enum = ... # type: RepeatedScalarFieldContainer[ForeignEnumProto2]
repeated_string_piece = ... # type: RepeatedScalarFieldContainer[Text]
repeated_cord = ... # type: RepeatedScalarFieldContainer[Text]
oneof_uint32 = ... # type: int
oneof_string = ... # type: Text
oneof_bytes = ... # type: bytes
oneof_bool = ... # type: bool
oneof_uint64 = ... # type: int
oneof_float = ... # type: float
oneof_double = ... # type: float
oneof_enum = ... # type: TestAllTypesProto2.NestedEnum
fieldname1 = ... # type: int
field_name2 = ... # type: int
_field_name3 = ... # type: int
field__name4_ = ... # type: int
field0name5 = ... # type: int
field_0_name6 = ... # type: int
fieldName7 = ... # type: int
FieldName8 = ... # type: int
field_Name9 = ... # type: int
Field_Name10 = ... # type: int
FIELD_NAME11 = ... # type: int
FIELD_name12 = ... # type: int
__field_name13 = ... # type: int
__Field_name14 = ... # type: int
field__name15 = ... # type: int
field__Name16 = ... # type: int
field_name17__ = ... # type: int
Field_name18__ = ... # type: int
optional_int32: int
optional_int64: int
optional_uint32: int
optional_uint64: int
optional_sint32: int
optional_sint64: int
optional_fixed32: int
optional_fixed64: int
optional_sfixed32: int
optional_sfixed64: int
optional_float: float
optional_double: float
optional_bool: bool
optional_string: Text
optional_bytes: bytes
optional_nested_enum: TestAllTypesProto2.NestedEnum
optional_foreign_enum: ForeignEnumProto2
optional_string_piece: Text
optional_cord: Text
repeated_int32: RepeatedScalarFieldContainer[int]
repeated_int64: RepeatedScalarFieldContainer[int]
repeated_uint32: RepeatedScalarFieldContainer[int]
repeated_uint64: RepeatedScalarFieldContainer[int]
repeated_sint32: RepeatedScalarFieldContainer[int]
repeated_sint64: RepeatedScalarFieldContainer[int]
repeated_fixed32: RepeatedScalarFieldContainer[int]
repeated_fixed64: RepeatedScalarFieldContainer[int]
repeated_sfixed32: RepeatedScalarFieldContainer[int]
repeated_sfixed64: RepeatedScalarFieldContainer[int]
repeated_float: RepeatedScalarFieldContainer[float]
repeated_double: RepeatedScalarFieldContainer[float]
repeated_bool: RepeatedScalarFieldContainer[bool]
repeated_string: RepeatedScalarFieldContainer[Text]
repeated_bytes: RepeatedScalarFieldContainer[bytes]
repeated_nested_enum: RepeatedScalarFieldContainer[TestAllTypesProto2.NestedEnum]
repeated_foreign_enum: RepeatedScalarFieldContainer[ForeignEnumProto2]
repeated_string_piece: RepeatedScalarFieldContainer[Text]
repeated_cord: RepeatedScalarFieldContainer[Text]
oneof_uint32: int
oneof_string: Text
oneof_bytes: bytes
oneof_bool: bool
oneof_uint64: int
oneof_float: float
oneof_double: float
oneof_enum: TestAllTypesProto2.NestedEnum
fieldname1: int
field_name2: int
_field_name3: int
field__name4_: int
field0name5: int
field_0_name6: int
fieldName7: int
FieldName8: int
field_Name9: int
Field_Name10: int
FIELD_NAME11: int
FIELD_name12: int
__field_name13: int
__Field_name14: int
field__name15: int
field__Name16: int
field_name17__: int
Field_name18__: int
@property
def optional_nested_message(self) -> TestAllTypesProto2.NestedMessage: ...
@@ -617,7 +617,7 @@ class TestAllTypesProto2(Message):
class ForeignMessageProto2(Message):
c = ... # type: int
c: int
def __init__(self,
c: Optional[int] = ...,

View File

@@ -89,7 +89,7 @@ class TestAllTypesProto3(Message):
NEG: NestedEnum
class NestedMessage(Message):
a = ... # type: int
a: int
@property
def corecursive(self) -> TestAllTypesProto3: ...
@@ -103,8 +103,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.NestedMessage: ...
class MapInt32Int32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -115,8 +115,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapInt32Int32Entry: ...
class MapInt64Int64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -127,8 +127,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapInt64Int64Entry: ...
class MapUint32Uint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -139,8 +139,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapUint32Uint32Entry: ...
class MapUint64Uint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -151,8 +151,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapUint64Uint64Entry: ...
class MapSint32Sint32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -163,8 +163,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapSint32Sint32Entry: ...
class MapSint64Sint64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -175,8 +175,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapSint64Sint64Entry: ...
class MapFixed32Fixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -187,8 +187,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapFixed32Fixed32Entry: ...
class MapFixed64Fixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -199,8 +199,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapFixed64Fixed64Entry: ...
class MapSfixed32Sfixed32Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -211,8 +211,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapSfixed32Sfixed32Entry: ...
class MapSfixed64Sfixed64Entry(Message):
key = ... # type: int
value = ... # type: int
key: int
value: int
def __init__(self,
key: Optional[int] = ...,
@@ -223,8 +223,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapSfixed64Sfixed64Entry: ...
class MapInt32FloatEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -235,8 +235,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapInt32FloatEntry: ...
class MapInt32DoubleEntry(Message):
key = ... # type: int
value = ... # type: float
key: int
value: float
def __init__(self,
key: Optional[int] = ...,
@@ -247,8 +247,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapInt32DoubleEntry: ...
class MapBoolBoolEntry(Message):
key = ... # type: bool
value = ... # type: bool
key: bool
value: bool
def __init__(self,
key: Optional[bool] = ...,
@@ -259,8 +259,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapBoolBoolEntry: ...
class MapStringStringEntry(Message):
key = ... # type: Text
value = ... # type: Text
key: Text
value: Text
def __init__(self,
key: Optional[Text] = ...,
@@ -271,8 +271,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringStringEntry: ...
class MapStringBytesEntry(Message):
key = ... # type: Text
value = ... # type: bytes
key: Text
value: bytes
def __init__(self,
key: Optional[Text] = ...,
@@ -283,7 +283,7 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringBytesEntry: ...
class MapStringNestedMessageEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> TestAllTypesProto3.NestedMessage: ...
@@ -297,7 +297,7 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringNestedMessageEntry: ...
class MapStringForeignMessageEntry(Message):
key = ... # type: Text
key: Text
@property
def value(self) -> ForeignMessage: ...
@@ -311,8 +311,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringForeignMessageEntry: ...
class MapStringNestedEnumEntry(Message):
key = ... # type: Text
value = ... # type: TestAllTypesProto3.NestedEnum
key: Text
value: TestAllTypesProto3.NestedEnum
def __init__(self,
key: Optional[Text] = ...,
@@ -323,8 +323,8 @@ class TestAllTypesProto3(Message):
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringNestedEnumEntry: ...
class MapStringForeignEnumEntry(Message):
key = ... # type: Text
value = ... # type: ForeignEnum
key: Text
value: ForeignEnum
def __init__(self,
key: Optional[Text] = ...,
@@ -333,70 +333,70 @@ class TestAllTypesProto3(Message):
@classmethod
def FromString(cls, s: bytes) -> TestAllTypesProto3.MapStringForeignEnumEntry: ...
optional_int32 = ... # type: int
optional_int64 = ... # type: int
optional_uint32 = ... # type: int
optional_uint64 = ... # type: int
optional_sint32 = ... # type: int
optional_sint64 = ... # type: int
optional_fixed32 = ... # type: int
optional_fixed64 = ... # type: int
optional_sfixed32 = ... # type: int
optional_sfixed64 = ... # type: int
optional_float = ... # type: float
optional_double = ... # type: float
optional_bool = ... # type: bool
optional_string = ... # type: Text
optional_bytes = ... # type: bytes
optional_nested_enum = ... # type: TestAllTypesProto3.NestedEnum
optional_foreign_enum = ... # type: ForeignEnum
optional_string_piece = ... # type: Text
optional_cord = ... # type: Text
repeated_int32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_int64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_uint32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_uint64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sint32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sint64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_fixed32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_fixed64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sfixed32 = ... # type: RepeatedScalarFieldContainer[int]
repeated_sfixed64 = ... # type: RepeatedScalarFieldContainer[int]
repeated_float = ... # type: RepeatedScalarFieldContainer[float]
repeated_double = ... # type: RepeatedScalarFieldContainer[float]
repeated_bool = ... # type: RepeatedScalarFieldContainer[bool]
repeated_string = ... # type: RepeatedScalarFieldContainer[Text]
repeated_bytes = ... # type: RepeatedScalarFieldContainer[bytes]
repeated_nested_enum = ... # type: RepeatedScalarFieldContainer[TestAllTypesProto3.NestedEnum]
repeated_foreign_enum = ... # type: RepeatedScalarFieldContainer[ForeignEnum]
repeated_string_piece = ... # type: RepeatedScalarFieldContainer[Text]
repeated_cord = ... # type: RepeatedScalarFieldContainer[Text]
oneof_uint32 = ... # type: int
oneof_string = ... # type: Text
oneof_bytes = ... # type: bytes
oneof_bool = ... # type: bool
oneof_uint64 = ... # type: int
oneof_float = ... # type: float
oneof_double = ... # type: float
oneof_enum = ... # type: TestAllTypesProto3.NestedEnum
fieldname1 = ... # type: int
field_name2 = ... # type: int
_field_name3 = ... # type: int
field__name4_ = ... # type: int
field0name5 = ... # type: int
field_0_name6 = ... # type: int
fieldName7 = ... # type: int
FieldName8 = ... # type: int
field_Name9 = ... # type: int
Field_Name10 = ... # type: int
FIELD_NAME11 = ... # type: int
FIELD_name12 = ... # type: int
__field_name13 = ... # type: int
__Field_name14 = ... # type: int
field__name15 = ... # type: int
field__Name16 = ... # type: int
field_name17__ = ... # type: int
Field_name18__ = ... # type: int
optional_int32: int
optional_int64: int
optional_uint32: int
optional_uint64: int
optional_sint32: int
optional_sint64: int
optional_fixed32: int
optional_fixed64: int
optional_sfixed32: int
optional_sfixed64: int
optional_float: float
optional_double: float
optional_bool: bool
optional_string: Text
optional_bytes: bytes
optional_nested_enum: TestAllTypesProto3.NestedEnum
optional_foreign_enum: ForeignEnum
optional_string_piece: Text
optional_cord: Text
repeated_int32: RepeatedScalarFieldContainer[int]
repeated_int64: RepeatedScalarFieldContainer[int]
repeated_uint32: RepeatedScalarFieldContainer[int]
repeated_uint64: RepeatedScalarFieldContainer[int]
repeated_sint32: RepeatedScalarFieldContainer[int]
repeated_sint64: RepeatedScalarFieldContainer[int]
repeated_fixed32: RepeatedScalarFieldContainer[int]
repeated_fixed64: RepeatedScalarFieldContainer[int]
repeated_sfixed32: RepeatedScalarFieldContainer[int]
repeated_sfixed64: RepeatedScalarFieldContainer[int]
repeated_float: RepeatedScalarFieldContainer[float]
repeated_double: RepeatedScalarFieldContainer[float]
repeated_bool: RepeatedScalarFieldContainer[bool]
repeated_string: RepeatedScalarFieldContainer[Text]
repeated_bytes: RepeatedScalarFieldContainer[bytes]
repeated_nested_enum: RepeatedScalarFieldContainer[TestAllTypesProto3.NestedEnum]
repeated_foreign_enum: RepeatedScalarFieldContainer[ForeignEnum]
repeated_string_piece: RepeatedScalarFieldContainer[Text]
repeated_cord: RepeatedScalarFieldContainer[Text]
oneof_uint32: int
oneof_string: Text
oneof_bytes: bytes
oneof_bool: bool
oneof_uint64: int
oneof_float: float
oneof_double: float
oneof_enum: TestAllTypesProto3.NestedEnum
fieldname1: int
field_name2: int
_field_name3: int
field__name4_: int
field0name5: int
field_0_name6: int
fieldName7: int
FieldName8: int
field_Name9: int
Field_Name10: int
FIELD_NAME11: int
FIELD_name12: int
__field_name13: int
__Field_name14: int
field__name15: int
field__Name16: int
field_name17__: int
Field_name18__: int
@property
def optional_nested_message(self) -> TestAllTypesProto3.NestedMessage: ...
@@ -690,7 +690,7 @@ class TestAllTypesProto3(Message):
class ForeignMessage(Message):
c = ... # type: int
c: int
def __init__(self,
c: Optional[int] = ...,

View File

@@ -9,8 +9,8 @@ from typing import (
class Timestamp(Message, well_known_types.Timestamp):
seconds = ... # type: int
nanos = ... # type: int
seconds: int
nanos: int
def __init__(self,
seconds: Optional[int] = ...,

View File

@@ -44,9 +44,9 @@ SYNTAX_PROTO3: Syntax
class Type(Message):
name = ... # type: Text
oneofs = ... # type: RepeatedScalarFieldContainer[Text]
syntax = ... # type: Syntax
name: Text
oneofs: RepeatedScalarFieldContainer[Text]
syntax: Syntax
@property
def fields(self) -> RepeatedCompositeFieldContainer[Field]: ...
@@ -128,15 +128,15 @@ class Field(Message):
CARDINALITY_OPTIONAL: Cardinality
CARDINALITY_REQUIRED: Cardinality
CARDINALITY_REPEATED: Cardinality
kind = ... # type: Field.Kind
cardinality = ... # type: Field.Cardinality
number = ... # type: int
name = ... # type: Text
type_url = ... # type: Text
oneof_index = ... # type: int
packed = ... # type: bool
json_name = ... # type: Text
default_value = ... # type: Text
kind: Field.Kind
cardinality: Field.Cardinality
number: int
name: Text
type_url: Text
oneof_index: int
packed: bool
json_name: Text
default_value: Text
@property
def options(self) -> RepeatedCompositeFieldContainer[Option]: ...
@@ -159,8 +159,8 @@ class Field(Message):
class Enum(Message):
name = ... # type: Text
syntax = ... # type: Syntax
name: Text
syntax: Syntax
@property
def enumvalue(self) -> RepeatedCompositeFieldContainer[EnumValue]: ...
@@ -184,8 +184,8 @@ class Enum(Message):
class EnumValue(Message):
name = ... # type: Text
number = ... # type: int
name: Text
number: int
@property
def options(self) -> RepeatedCompositeFieldContainer[Option]: ...
@@ -201,7 +201,7 @@ class EnumValue(Message):
class Option(Message):
name = ... # type: Text
name: Text
@property
def value(self) -> Any: ...

View File

@@ -14,7 +14,7 @@ from typing import (
class NestedMessage(Message):
d = ... # type: int
d: int
def __init__(self,
d: Optional[int] = ...,

View File

@@ -82,8 +82,8 @@ class TestMessageWithCustomOptions(Message):
TestMessageWithCustomOptions.AnEnum]]: ...
ANENUM_VAL1: AnEnum
ANENUM_VAL2: AnEnum
field1 = ... # type: Text
oneof_field = ... # type: int
field1: Text
oneof_field: int
def __init__(self,
field1: Optional[Text] = ...,
@@ -214,10 +214,10 @@ class SettingRealsFromNegativeInts(Message):
class ComplexOptionType1(Message):
foo = ... # type: int
foo2 = ... # type: int
foo3 = ... # type: int
foo4 = ... # type: RepeatedScalarFieldContainer[int]
foo: int
foo2: int
foo3: int
foo4: RepeatedScalarFieldContainer[int]
def __init__(self,
foo: Optional[int] = ...,
@@ -233,7 +233,7 @@ class ComplexOptionType1(Message):
class ComplexOptionType2(Message):
class ComplexOptionType4(Message):
waldo = ... # type: int
waldo: int
def __init__(self,
waldo: Optional[int] = ...,
@@ -242,7 +242,7 @@ class ComplexOptionType2(Message):
@classmethod
def FromString(
cls, s: bytes) -> ComplexOptionType2.ComplexOptionType4: ...
baz = ... # type: int
baz: int
@property
def bar(self) -> ComplexOptionType1: ...
@@ -268,7 +268,7 @@ class ComplexOptionType2(Message):
class ComplexOptionType3(Message):
class ComplexOptionType5(Message):
plugh = ... # type: int
plugh: int
def __init__(self,
plugh: Optional[int] = ...,
@@ -277,7 +277,7 @@ class ComplexOptionType3(Message):
@classmethod
def FromString(
cls, s: bytes) -> ComplexOptionType3.ComplexOptionType5: ...
qux = ... # type: int
qux: int
@property
def complexoptiontype5(self) -> ComplexOptionType3.ComplexOptionType5: ...
@@ -292,7 +292,7 @@ class ComplexOptionType3(Message):
class ComplexOpt6(Message):
xyzzy = ... # type: int
xyzzy: int
def __init__(self,
xyzzy: Optional[int] = ...,
@@ -321,7 +321,7 @@ class AggregateMessageSet(Message):
class AggregateMessageSetElement(Message):
s = ... # type: Text
s: Text
def __init__(self,
s: Optional[Text] = ...,
@@ -332,8 +332,8 @@ class AggregateMessageSetElement(Message):
class Aggregate(Message):
i = ... # type: int
s = ... # type: Text
i: int
s: Text
@property
def sub(self) -> Aggregate: ...
@@ -357,7 +357,7 @@ class Aggregate(Message):
class AggregateMessage(Message):
fieldname = ... # type: int
fieldname: int
def __init__(self,
fieldname: Optional[int] = ...,
@@ -388,7 +388,7 @@ class NestedOptionType(Message):
NESTED_ENUM_VALUE: NestedEnum
class NestedMessage(Message):
nested_field = ... # type: int
nested_field: int
def __init__(self,
nested_field: Optional[int] = ...,
@@ -423,7 +423,7 @@ class OldOptionType(Message):
@classmethod
def items(cls) -> List[Tuple[bytes, OldOptionType.TestEnum]]: ...
OLD_VALUE: TestEnum
value = ... # type: OldOptionType.TestEnum
value: OldOptionType.TestEnum
def __init__(self,
value: OldOptionType.TestEnum,
@@ -453,7 +453,7 @@ class NewOptionType(Message):
def items(cls) -> List[Tuple[bytes, NewOptionType.TestEnum]]: ...
OLD_VALUE: TestEnum
NEW_VALUE: TestEnum
value = ... # type: NewOptionType.TestEnum
value: NewOptionType.TestEnum
def __init__(self,
value: NewOptionType.TestEnum,

View File

@@ -56,7 +56,7 @@ BAR: ImportEnumForMap
class ImportMessage(Message):
d = ... # type: int
d: int
def __init__(self,
d: Optional[int] = ...,

View File

@@ -7,7 +7,7 @@ from typing import (
class PublicImportMessage(Message):
e = ... # type: int
e: int
def __init__(self,
e: Optional[int] = ...,

View File

@@ -29,7 +29,7 @@ class TestMessageSetContainer(Message):
class TestMessageSetExtension1(Message):
i = ... # type: int
i: int
def __init__(self,
i: Optional[int] = ...,
@@ -40,7 +40,7 @@ class TestMessageSetExtension1(Message):
class TestMessageSetExtension2(Message):
str = ... # type: Text
str: Text
def __init__(self,
bytes: Optional[Text] = ...,
@@ -53,8 +53,8 @@ class TestMessageSetExtension2(Message):
class RawMessageSet(Message):
class Item(Message):
type_id = ... # type: int
message = ... # type: bytes
type_id: int
message: bytes
def __init__(self,
type_id: int,

Some files were not shown because too many files have changed in this diff Show More