mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-27 22:31:12 +08:00
- Updates documentation related to previously required comment headers. - Removes all comment headers from stubs - Occasionally included a header for stubs that were noted to be incomplete or contained todo's.
This commit is contained in:
committed by
Guido van Rossum
parent
a2aa93ac29
commit
b6d08b81a3
@@ -1,7 +1,3 @@
|
||||
# Stubs for Cookie (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class CookieError(Exception): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for cookielib (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class Cookie:
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for csv (Python 2.7)
|
||||
#
|
||||
# NOTE: Based on a dynamically typed stub automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Dict, Iterable, List, Sequence, Type, Union
|
||||
|
||||
# Public interface of _csv.reader's return type
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email.MIMEText (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from email.mime.nonmultipart import MIMENonMultipart
|
||||
|
||||
class MIMEText(MIMENonMultipart):
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email._parseaddr (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
def parsedate_tz(data): ...
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
# Stubs for email.mime.base (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
# NOTE: This stub is incomplete.
|
||||
|
||||
# import message
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email.mime.multipart (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from email.mime.base import MIMEBase
|
||||
|
||||
class MIMEMultipart(MIMEBase):
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email.mime.nonmultipart (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from email.mime.base import MIMEBase
|
||||
|
||||
class MIMENonMultipart(MIMEBase):
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email.mime.text (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from email.mime.nonmultipart import MIMENonMultipart
|
||||
|
||||
class MIMEText(MIMENonMultipart):
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for email.utils (Python 2)
|
||||
#
|
||||
# Derived from stub automatically generated by stubgen.
|
||||
|
||||
from email._parseaddr import AddressList as _AddressList
|
||||
from email._parseaddr import mktime_tz as mktime_tz
|
||||
from email._parseaddr import parsedate as _parsedate
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for genericpath (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
class _unicode: ...
|
||||
|
||||
def exists(path): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for gzip (Python 2)
|
||||
#
|
||||
# NOTE: Based on a dynamically typed stub automatically generated by stubgen.
|
||||
|
||||
from typing import Any, IO
|
||||
import io
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for htmlentitydefs (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Mapping
|
||||
|
||||
name2codepoint = ... # type: Mapping[str, int]
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for linecache (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
def getline(filename, lineno, module_globals=None): ...
|
||||
def clearcache(): ...
|
||||
def checkcache(filename=None): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for mimetools (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
import rfc822
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for multiprocessing (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from multiprocessing.process import Process as Process, current_process as current_process, active_children as active_children
|
||||
from multiprocessing.util import SUBDEBUG as SUBDEBUG, SUBWARNING as SUBWARNING
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for multiprocessing.process (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
def current_process(): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for multiprocessing.util (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
import threading
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Stub for pdb (incomplete, only some global functions)
|
||||
# NOTE: This stub is incomplete - only contains some global functions
|
||||
|
||||
from typing import Any, Dict
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for posixpath (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, AnyStr, List
|
||||
from genericpath import * # noqa: F403
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for pydoc (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, AnyStr, Callable, Container, Dict, IO, List, Mapping, MutableMapping, Optional, Tuple, Type, Union
|
||||
from mypy_extensions import NoReturn
|
||||
from repr import Repr
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for runpy (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class _TempModule:
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for shutil (Python 2)
|
||||
#
|
||||
# NOTE: Based on a dynamically typed stub automatically generated by stubgen.
|
||||
|
||||
from typing import List, Iterable, Callable, IO, AnyStr, Any, Optional, Tuple, Sequence
|
||||
|
||||
class Error(EnvironmentError): ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for smtplib (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class SMTPException(Exception): ...
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
# Stubs for sqlite3 (Python 3.5)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from sqlite3.dbapi2 import * # noqa: F403
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for textwrap (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class _unicode: ...
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
# Stubs for urllib (Python 2)
|
||||
# NOTE: This dynamically typed stub was originally automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Mapping, Union, Tuple, Sequence, IO
|
||||
|
||||
def url2pathname(pathname: str) -> str: ...
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for weakref (Python 2)
|
||||
#
|
||||
# Based on stub automatically generated by stubgen.
|
||||
|
||||
from typing import Any, MutableMapping, Generic, Iterator, List, TypeVar
|
||||
from _weakref import (getweakrefcount, getweakrefs, ref, proxy,
|
||||
CallableProxyType, ProxyType, ReferenceType)
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
# Stubs for wsgiref.validate (Python 2)
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any
|
||||
|
||||
class WSGIWarning(Warning): ...
|
||||
|
||||
Reference in New Issue
Block a user