Remove annotations from http.HTTPStatus enum members (#2314)

These type annotations are unnecessary and seem to confuse the type system.

* Remove annotation from PlistFormat enum members

Same rationale as python/typeshed#2314; same adverse effects observed.
This commit is contained in:
justinpawela
2018-07-09 19:59:34 -06:00
committed by Jelle Zijlstra
parent c541077ffb
commit 2a888416b2
2 changed files with 59 additions and 59 deletions

View File

@@ -10,8 +10,8 @@ if sys.version_info >= (3,):
from enum import Enum
class PlistFormat(Enum):
FMT_XML = ... # type: PlistFormat
FMT_BINARY = ... # type: PlistFormat
FMT_XML = ...
FMT_BINARY = ...
FMT_XML = PlistFormat.FMT_XML
FMT_BINARY = PlistFormat.FMT_BINARY

View File

@@ -10,60 +10,60 @@ if sys.version_info >= (3, 5):
phrase = ... # type: str
description = ... # type: str
CONTINUE = ... # type: HTTPStatus
SWITCHING_PROTOCOLS = ... # type: HTTPStatus
PROCESSING = ... # type: HTTPStatus
OK = ... # type: HTTPStatus
CREATED = ... # type: HTTPStatus
ACCEPTED = ... # type: HTTPStatus
NON_AUTHORITATIVE_INFORMATION = ... # type: HTTPStatus
NO_CONTENT = ... # type: HTTPStatus
RESET_CONTENT = ... # type: HTTPStatus
PARTIAL_CONTENT = ... # type: HTTPStatus
MULTI_STATUS = ... # type: HTTPStatus
ALREADY_REPORTED = ... # type: HTTPStatus
IM_USED = ... # type: HTTPStatus
MULTIPLE_CHOICES = ... # type: HTTPStatus
MOVED_PERMANENTLY = ... # type: HTTPStatus
FOUND = ... # type: HTTPStatus
SEE_OTHER = ... # type: HTTPStatus
NOT_MODIFIED = ... # type: HTTPStatus
USE_PROXY = ... # type: HTTPStatus
TEMPORARY_REDIRECT = ... # type: HTTPStatus
PERMANENT_REDIRECT = ... # type: HTTPStatus
BAD_REQUEST = ... # type: HTTPStatus
UNAUTHORIZED = ... # type: HTTPStatus
PAYMENT_REQUIRED = ... # type: HTTPStatus
FORBIDDEN = ... # type: HTTPStatus
NOT_FOUND = ... # type: HTTPStatus
METHOD_NOT_ALLOWED = ... # type: HTTPStatus
NOT_ACCEPTABLE = ... # type: HTTPStatus
PROXY_AUTHENTICATION_REQUIRED = ... # type: HTTPStatus
REQUEST_TIMEOUT = ... # type: HTTPStatus
CONFLICT = ... # type: HTTPStatus
GONE = ... # type: HTTPStatus
LENGTH_REQUIRED = ... # type: HTTPStatus
PRECONDITION_FAILED = ... # type: HTTPStatus
REQUEST_ENTITY_TOO_LARGE = ... # type: HTTPStatus
REQUEST_URI_TOO_LONG = ... # type: HTTPStatus
UNSUPPORTED_MEDIA_TYPE = ... # type: HTTPStatus
REQUESTED_RANGE_NOT_SATISFIABLE = ... # type: HTTPStatus
EXPECTATION_FAILED = ... # type: HTTPStatus
UNPROCESSABLE_ENTITY = ... # type: HTTPStatus
LOCKED = ... # type: HTTPStatus
FAILED_DEPENDENCY = ... # type: HTTPStatus
UPGRADE_REQUIRED = ... # type: HTTPStatus
PRECONDITION_REQUIRED = ... # type: HTTPStatus
TOO_MANY_REQUESTS = ... # type: HTTPStatus
REQUEST_HEADER_FIELDS_TOO_LARGE = ... # type: HTTPStatus
INTERNAL_SERVER_ERROR = ... # type: HTTPStatus
NOT_IMPLEMENTED = ... # type: HTTPStatus
BAD_GATEWAY = ... # type: HTTPStatus
SERVICE_UNAVAILABLE = ... # type: HTTPStatus
GATEWAY_TIMEOUT = ... # type: HTTPStatus
HTTP_VERSION_NOT_SUPPORTED = ... # type: HTTPStatus
VARIANT_ALSO_NEGOTIATES = ... # type: HTTPStatus
INSUFFICIENT_STORAGE = ... # type: HTTPStatus
LOOP_DETECTED = ... # type: HTTPStatus
NOT_EXTENDED = ... # type: HTTPStatus
NETWORK_AUTHENTICATION_REQUIRED = ... # type: HTTPStatus
CONTINUE = ...
SWITCHING_PROTOCOLS = ...
PROCESSING = ...
OK = ...
CREATED = ...
ACCEPTED = ...
NON_AUTHORITATIVE_INFORMATION = ...
NO_CONTENT = ...
RESET_CONTENT = ...
PARTIAL_CONTENT = ...
MULTI_STATUS = ...
ALREADY_REPORTED = ...
IM_USED = ...
MULTIPLE_CHOICES = ...
MOVED_PERMANENTLY = ...
FOUND = ...
SEE_OTHER = ...
NOT_MODIFIED = ...
USE_PROXY = ...
TEMPORARY_REDIRECT = ...
PERMANENT_REDIRECT = ...
BAD_REQUEST = ...
UNAUTHORIZED = ...
PAYMENT_REQUIRED = ...
FORBIDDEN = ...
NOT_FOUND = ...
METHOD_NOT_ALLOWED = ...
NOT_ACCEPTABLE = ...
PROXY_AUTHENTICATION_REQUIRED = ...
REQUEST_TIMEOUT = ...
CONFLICT = ...
GONE = ...
LENGTH_REQUIRED = ...
PRECONDITION_FAILED = ...
REQUEST_ENTITY_TOO_LARGE = ...
REQUEST_URI_TOO_LONG = ...
UNSUPPORTED_MEDIA_TYPE = ...
REQUESTED_RANGE_NOT_SATISFIABLE = ...
EXPECTATION_FAILED = ...
UNPROCESSABLE_ENTITY = ...
LOCKED = ...
FAILED_DEPENDENCY = ...
UPGRADE_REQUIRED = ...
PRECONDITION_REQUIRED = ...
TOO_MANY_REQUESTS = ...
REQUEST_HEADER_FIELDS_TOO_LARGE = ...
INTERNAL_SERVER_ERROR = ...
NOT_IMPLEMENTED = ...
BAD_GATEWAY = ...
SERVICE_UNAVAILABLE = ...
GATEWAY_TIMEOUT = ...
HTTP_VERSION_NOT_SUPPORTED = ...
VARIANT_ALSO_NEGOTIATES = ...
INSUFFICIENT_STORAGE = ...
LOOP_DETECTED = ...
NOT_EXTENDED = ...
NETWORK_AUTHENTICATION_REQUIRED = ...