typeshed: remove crufty comments (#4699)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-10-23 09:40:06 +02:00
committed by GitHub
co-authored by hauntsaninja <>
parent 3de732e188
commit 6ff5b88ca7
270 changed files with 16 additions and 684 deletions
-2
View File
@@ -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
View File
@@ -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
View File
@@ -1,4 +1,3 @@
# Stubs for six.moves.urllib.parse
from urllib import (
quote as quote,
quote_plus as quote_plus,
-1
View File
@@ -1,4 +1,3 @@
# Stubs for six.moves.urllib.request
from urllib import (
FancyURLopener as FancyURLopener,
URLopener as URLopener,
-1
View File
@@ -1,2 +1 @@
# Stubs for six.moves.urllib.response
from urllib import addbase as addbase, addclosehook as addclosehook, addinfo as addinfo, addinfourl as addinfourl
+11 -11
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -1,4 +1,3 @@
# Stubs for flask.json (Python 3.6)
import json as _json
from typing import Any
-4
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -1,5 +1,3 @@
# Stubs for requests (based on version 2.6.0, Python 3)
import logging
from typing import Any
-2
View File
@@ -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
View File
@@ -1,5 +1,3 @@
# Stubs for requests.api (Python 3)
from _typeshed import SupportsItems
from typing import Iterable, Optional, Text, Tuple, Union
-2
View File
@@ -1,5 +1,3 @@
# Stubs for requests.auth (Python 3)
from typing import Any, Text, Union
from . import cookies, models, status_codes, utils
-2
View File
@@ -1,5 +1,3 @@
# Stubs for requests.compat (Python 3.4)
import collections
OrderedDict = collections.OrderedDict
-2
View File
@@ -1,5 +1,3 @@
# Stubs for requests.cookies (Python 3)
import sys
from typing import Any, MutableMapping
-2
View File
@@ -1,5 +1,3 @@
# Stubs for requests.exceptions (Python 3)
from typing import Any
from .packages.urllib3.exceptions import HTTPError as BaseHTTPError
-2
View File
@@ -1,5 +1,3 @@
# Stubs for requests.hooks (Python 3)
from typing import Any
HOOKS: Any
-2
View File
@@ -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
View File
@@ -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
View File
@@ -1,5 +1,3 @@
# Stubs for requests.utils (Python 3)
from typing import Any
from . import compat, cookies, exceptions, structures
-1
View File
@@ -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
View File
@@ -1,4 +1,3 @@
# Stub for termcolor: https://pypi.python.org/pypi/termcolor
from typing import Any, Iterable, Optional, Text
def colored(
-2
View File
@@ -1,5 +1,3 @@
# Stubs for ujson
# See: https://pypi.python.org/pypi/ujson
from typing import IO, Any, AnyStr
__version__: str
-2
View File
@@ -1,5 +1,3 @@
# Stubs for pkg_resources (Python 3.4)
import importlib.abc
import types
import zipimport
-2
View File
@@ -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