Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pep 484: more reexports #4607

Merged
merged 1 commit into from
Oct 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion third_party/2and3/boto/compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ from typing import Any
if sys.version_info >= (3,):
from base64 import encodebytes as encodebytes
else:
from base64 import encodestring as encodebytes
from base64 import encodestring

encodebytes = encodestring

expanduser: Any

Expand Down
4 changes: 3 additions & 1 deletion third_party/2and3/click/types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import datetime
import uuid
from typing import IO, Any, Callable, Generic, Iterable, List, Optional, Tuple as _PyTuple, Type, TypeVar, Union

from click.core import Context, Parameter, _ConvertibleType, _ParamType as ParamType
from click.core import Context, Parameter, _ConvertibleType, _ParamType

ParamType = _ParamType

class BoolParamType(ParamType):
def __call__(self, value: Optional[str], param: Optional[Parameter] = ..., ctx: Optional[Context] = ...) -> bool: ...
Expand Down
8 changes: 6 additions & 2 deletions third_party/2and3/jinja2/_compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import sys
from typing import Any, Optional

if sys.version_info[0] >= 3:
from urllib.parse import quote_from_bytes as url_quote
from urllib.parse import quote_from_bytes

url_quote = quote_from_bytes
else:
from urllib import quote as url_quote
import urllib

url_quote = urllib.quote

PY2: Any
PYPY: Any
Expand Down
13 changes: 9 additions & 4 deletions third_party/2and3/werkzeug/_compat.pyi
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import sys
from typing import Any, Optional, Text

if sys.version_info < (3,):
import StringIO as BytesIO
if sys.version_info >= (3,):
from io import BytesIO as BytesIO, StringIO as StringIO

NativeStringIO = StringIO
else:
from io import StringIO as BytesIO
import cStringIO
from StringIO import StringIO as StringIO

BytesIO = cStringIO.StringIO
NativeStringIO = BytesIO

PY2: Any
WIN: Any
Expand All @@ -27,7 +33,6 @@ def native_string_result(func): ...
def implements_bool(cls): ...

range_type: Any
NativeStringIO: Any

def make_literal_wrapper(reference): ...
def normalize_string_tuple(tup): ...
Expand Down
1 change: 0 additions & 1 deletion third_party/3/aiofiles/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from . import _os as os
from .threadpool import open as open
1 change: 0 additions & 1 deletion third_party/3/jwt/contrib/algorithms/__init__.pyi
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
from hashlib import _Hash as _HashAlg
11 changes: 5 additions & 6 deletions third_party/3/jwt/contrib/algorithms/py_ecdsa.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import hashlib
from typing import Any

from jwt.algorithms import Algorithm

from . import _HashAlg

class ECAlgorithm(Algorithm[Any]):
SHA256: _HashAlg
SHA384: _HashAlg
SHA512: _HashAlg
def __init__(self, hash_alg: _HashAlg) -> None: ...
SHA256: hashlib._Hash
SHA384: hashlib._Hash
SHA512: hashlib._Hash
def __init__(self, hash_alg: hashlib._Hash) -> None: ...
11 changes: 5 additions & 6 deletions third_party/3/jwt/contrib/algorithms/pycrypto.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import hashlib
from typing import Any

from jwt.algorithms import Algorithm

from . import _HashAlg

class RSAAlgorithm(Algorithm[Any]):
SHA256: _HashAlg
SHA384: _HashAlg
SHA512: _HashAlg
def __init__(self, hash_alg: _HashAlg) -> None: ...
SHA256: hashlib._Hash
SHA384: hashlib._Hash
SHA512: hashlib._Hash
def __init__(self, hash_alg: hashlib._Hash) -> None: ...
5 changes: 0 additions & 5 deletions third_party/3/waitress/compat.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import sys
from io import TextIOWrapper
from typing import Any, Optional, Text, Tuple

if sys.version_info[0] == 3:
from urllib import parse as urlparse
else:
import urlparse

PY2: bool
PY3: bool
WIN: bool
Expand Down