mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
typeshed: remove crufty comments (#4699)
Co-authored-by: hauntsaninja <>
This commit is contained in:
2
third_party/2/OpenSSL/crypto.pyi
vendored
2
third_party/2/OpenSSL/crypto.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for OpenSSL.crypto (Python 2)
|
||||
|
||||
from datetime import datetime
|
||||
from typing import Any, Callable, Iterable, List, Optional, Set, Text, Tuple, Union
|
||||
|
||||
|
||||
1
third_party/2/enum.pyi
vendored
1
third_party/2/enum.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# NB: third_party/2/enum.pyi and stdlib/3.4/enum.pyi must remain consistent!
|
||||
import sys
|
||||
from abc import ABCMeta
|
||||
from typing import Any, Dict, Iterator, List, Mapping, Type, TypeVar, Union
|
||||
|
||||
1
third_party/2/six/moves/urllib/parse.pyi
vendored
1
third_party/2/six/moves/urllib/parse.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# Stubs for six.moves.urllib.parse
|
||||
from urllib import (
|
||||
quote as quote,
|
||||
quote_plus as quote_plus,
|
||||
|
||||
1
third_party/2/six/moves/urllib/request.pyi
vendored
1
third_party/2/six/moves/urllib/request.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# Stubs for six.moves.urllib.request
|
||||
from urllib import (
|
||||
FancyURLopener as FancyURLopener,
|
||||
URLopener as URLopener,
|
||||
|
||||
1
third_party/2/six/moves/urllib/response.pyi
vendored
1
third_party/2/six/moves/urllib/response.pyi
vendored
@@ -1,2 +1 @@
|
||||
# Stubs for six.moves.urllib.response
|
||||
from urllib import addbase as addbase, addclosehook as addclosehook, addinfo as addinfo, addinfourl as addinfourl
|
||||
|
||||
22
third_party/2and3/cachetools/func.pyi
vendored
22
third_party/2and3/cachetools/func.pyi
vendored
@@ -1,11 +1,11 @@
|
||||
from typing import Any, Callable, Optional, Sequence, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
_F = TypeVar("_F", bound=Callable[..., Any])
|
||||
_RET = Callable[[_F], _F]
|
||||
|
||||
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
||||
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
||||
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET: ...
|
||||
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET: ...
|
||||
from typing import Any, Callable, Optional, Sequence, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
_F = TypeVar("_F", bound=Callable[..., Any])
|
||||
_RET = Callable[[_F], _F]
|
||||
|
||||
def lfu_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
||||
def lru_cache(maxsize: int = ..., typed: bool = ...) -> _RET: ...
|
||||
def rr_cache(maxsize: int = ..., choice: Optional[Callable[[Sequence[_T]], _T]] = ..., typed: bool = ...) -> _RET: ...
|
||||
def ttl_cache(maxsize: int = ..., ttl: float = ..., timer: float = ..., typed: bool = ...) -> _RET: ...
|
||||
|
||||
16
third_party/2and3/click/__init__.pyi
vendored
16
third_party/2and3/click/__init__.pyi
vendored
@@ -1,19 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
click
|
||||
~~~~~
|
||||
|
||||
Click is a simple Python module that wraps the stdlib's optparse to make
|
||||
writing command line scripts fun. Unlike other modules, it's based around
|
||||
a simple API that does not come with too much magic and is composable.
|
||||
|
||||
In case optparse ever gets removed from the stdlib, it will be shipped by
|
||||
this module.
|
||||
|
||||
:copyright: (c) 2014 by Armin Ronacher.
|
||||
:license: BSD, see LICENSE for more details.
|
||||
"""
|
||||
|
||||
from .core import (
|
||||
Argument as Argument,
|
||||
BaseCommand as BaseCommand,
|
||||
|
||||
4
third_party/2and3/flask/__init__.pyi
vendored
4
third_party/2and3/flask/__init__.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from jinja2 import Markup as Markup, escape as escape
|
||||
from werkzeug.exceptions import abort as abort
|
||||
from werkzeug.utils import redirect as redirect
|
||||
|
||||
4
third_party/2and3/flask/app.pyi
vendored
4
third_party/2and3/flask/app.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.app (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from datetime import timedelta
|
||||
from types import TracebackType
|
||||
from typing import (
|
||||
|
||||
4
third_party/2and3/flask/blueprints.pyi
vendored
4
third_party/2and3/flask/blueprints.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.blueprints (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Callable, Optional, Type, TypeVar, Union
|
||||
|
||||
from .app import _ViewFunc
|
||||
|
||||
4
third_party/2and3/flask/cli.pyi
vendored
4
third_party/2and3/flask/cli.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.cli (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
import click
|
||||
|
||||
4
third_party/2and3/flask/config.pyi
vendored
4
third_party/2and3/flask/config.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.config (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
class ConfigAttribute:
|
||||
|
||||
4
third_party/2and3/flask/ctx.pyi
vendored
4
third_party/2and3/flask/ctx.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.ctx (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
class _AppCtxGlobals:
|
||||
|
||||
4
third_party/2and3/flask/debughelpers.pyi
vendored
4
third_party/2and3/flask/debughelpers.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.debughelpers (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class UnexpectedUnicodeError(AssertionError, UnicodeError): ...
|
||||
|
||||
4
third_party/2and3/flask/globals.pyi
vendored
4
third_party/2and3/flask/globals.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.globals (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
from werkzeug.local import LocalStack
|
||||
|
||||
4
third_party/2and3/flask/helpers.pyi
vendored
4
third_party/2and3/flask/helpers.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.helpers (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
from .cli import AppGroup
|
||||
|
||||
1
third_party/2and3/flask/json/__init__.pyi
vendored
1
third_party/2and3/flask/json/__init__.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# Stubs for flask.json (Python 3.6)
|
||||
import json as _json
|
||||
from typing import Any
|
||||
|
||||
|
||||
4
third_party/2and3/flask/json/tag.pyi
vendored
4
third_party/2and3/flask/json/tag.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.json.tag (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
class JSONTag:
|
||||
|
||||
4
third_party/2and3/flask/logging.pyi
vendored
4
third_party/2and3/flask/logging.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.logging (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
def wsgi_errors_stream(): ...
|
||||
|
||||
4
third_party/2and3/flask/sessions.pyi
vendored
4
third_party/2and3/flask/sessions.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.sessions (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from abc import ABCMeta
|
||||
from typing import Any, MutableMapping, Optional
|
||||
|
||||
|
||||
4
third_party/2and3/flask/signals.pyi
vendored
4
third_party/2and3/flask/signals.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.signals (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
signals_available: bool
|
||||
|
||||
4
third_party/2and3/flask/templating.pyi
vendored
4
third_party/2and3/flask/templating.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.templating (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Iterable, Text, Union
|
||||
|
||||
from jinja2 import BaseLoader, Environment as BaseEnvironment
|
||||
|
||||
4
third_party/2and3/flask/testing.pyi
vendored
4
third_party/2and3/flask/testing.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.testing (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import IO, Any, Iterable, Mapping, Optional, Text, TypeVar, Union
|
||||
|
||||
from click import BaseCommand
|
||||
|
||||
4
third_party/2and3/flask/views.pyi
vendored
4
third_party/2and3/flask/views.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.views (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
http_method_funcs: Any
|
||||
|
||||
4
third_party/2and3/flask/wrappers.pyi
vendored
4
third_party/2and3/flask/wrappers.pyi
vendored
@@ -1,7 +1,3 @@
|
||||
# Stubs for flask.wrappers (Python 3.6)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
from werkzeug.exceptions import HTTPException
|
||||
|
||||
2
third_party/2and3/requests/__init__.pyi
vendored
2
third_party/2and3/requests/__init__.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests (based on version 2.6.0, Python 3)
|
||||
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
|
||||
2
third_party/2and3/requests/adapters.pyi
vendored
2
third_party/2and3/requests/adapters.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.adapters (Python 3)
|
||||
|
||||
from typing import Any, Container, Mapping, Optional, Text, Tuple, Union
|
||||
|
||||
from . import cookies, exceptions, models, structures, utils
|
||||
|
||||
2
third_party/2and3/requests/api.pyi
vendored
2
third_party/2and3/requests/api.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.api (Python 3)
|
||||
|
||||
from _typeshed import SupportsItems
|
||||
from typing import Iterable, Optional, Text, Tuple, Union
|
||||
|
||||
|
||||
2
third_party/2and3/requests/auth.pyi
vendored
2
third_party/2and3/requests/auth.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.auth (Python 3)
|
||||
|
||||
from typing import Any, Text, Union
|
||||
|
||||
from . import cookies, models, status_codes, utils
|
||||
|
||||
2
third_party/2and3/requests/compat.pyi
vendored
2
third_party/2and3/requests/compat.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.compat (Python 3.4)
|
||||
|
||||
import collections
|
||||
|
||||
OrderedDict = collections.OrderedDict
|
||||
|
||||
2
third_party/2and3/requests/cookies.pyi
vendored
2
third_party/2and3/requests/cookies.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.cookies (Python 3)
|
||||
|
||||
import sys
|
||||
from typing import Any, MutableMapping
|
||||
|
||||
|
||||
2
third_party/2and3/requests/exceptions.pyi
vendored
2
third_party/2and3/requests/exceptions.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.exceptions (Python 3)
|
||||
|
||||
from typing import Any
|
||||
|
||||
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
|
||||
|
||||
2
third_party/2and3/requests/hooks.pyi
vendored
2
third_party/2and3/requests/hooks.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.hooks (Python 3)
|
||||
|
||||
from typing import Any
|
||||
|
||||
HOOKS: Any
|
||||
|
||||
2
third_party/2and3/requests/models.pyi
vendored
2
third_party/2and3/requests/models.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.models (Python 3)
|
||||
|
||||
import datetime
|
||||
from typing import Any, Dict, Iterator, List, Optional, Text, Union
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.packages.urllib3.connection (Python 3.4)
|
||||
|
||||
import ssl
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.packages.urllib3.fields (Python 3.4)
|
||||
|
||||
from typing import Any
|
||||
|
||||
def guess_content_type(filename, default=...): ...
|
||||
|
||||
2
third_party/2and3/requests/sessions.pyi
vendored
2
third_party/2and3/requests/sessions.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.sessions (Python 3)
|
||||
|
||||
from typing import IO, Any, Callable, Iterable, List, Mapping, MutableMapping, Optional, Text, Tuple, Union
|
||||
|
||||
from . import adapters, auth as _auth, compat, cookies, exceptions, hooks, models, status_codes, structures, utils
|
||||
|
||||
2
third_party/2and3/requests/utils.pyi
vendored
2
third_party/2and3/requests/utils.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for requests.utils (Python 3)
|
||||
|
||||
from typing import Any
|
||||
|
||||
from . import compat, cookies, exceptions, structures
|
||||
|
||||
1
third_party/2and3/tabulate.pyi
vendored
1
third_party/2and3/tabulate.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# Stub for tabulate: https://github.com/astanin/python-tabulate
|
||||
from typing import Any, Callable, Container, Iterable, List, Mapping, NamedTuple, Optional, Sequence, Union
|
||||
|
||||
PRESERVE_WHITESPACE: bool
|
||||
|
||||
1
third_party/2and3/termcolor.pyi
vendored
1
third_party/2and3/termcolor.pyi
vendored
@@ -1,4 +1,3 @@
|
||||
# Stub for termcolor: https://pypi.python.org/pypi/termcolor
|
||||
from typing import Any, Iterable, Optional, Text
|
||||
|
||||
def colored(
|
||||
|
||||
2
third_party/2and3/ujson.pyi
vendored
2
third_party/2and3/ujson.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for ujson
|
||||
# See: https://pypi.python.org/pypi/ujson
|
||||
from typing import IO, Any, AnyStr
|
||||
|
||||
__version__: str
|
||||
|
||||
2
third_party/3/pkg_resources/__init__.pyi
vendored
2
third_party/3/pkg_resources/__init__.pyi
vendored
@@ -1,5 +1,3 @@
|
||||
# Stubs for pkg_resources (Python 3.4)
|
||||
|
||||
import importlib.abc
|
||||
import types
|
||||
import zipimport
|
||||
|
||||
2
third_party/3/typed_ast/__init__.pyi
vendored
2
third_party/3/typed_ast/__init__.pyi
vendored
@@ -1,2 +0,0 @@
|
||||
# This module is a fork of the CPython 2 and 3 ast modules with PEP 484 support.
|
||||
# See: https://github.com/python/typed_ast
|
||||
|
||||
Reference in New Issue
Block a user