contextlib: get rid of a TODO (#4610)

This dates back three years to https://github.com/python/typeshed/pull/1249

It seems pretty unused in practice, so I think this is fine:
https://grep.app/search?q=from%20contextlib%20import%20ContextManager&case=true
https://grep.app/search?q=contextlib.ContextManager&case=true

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-10-04 14:49:49 -07:00
committed by GitHub
parent cca6e53d86
commit 723a23abfc
2 changed files with 1 additions and 15 deletions

View File

@@ -1,19 +1,6 @@
# ContextManager aliased here for backwards compatibility; TODO eventually remove this
import sys
from types import TracebackType
from typing import (
IO,
Any,
Callable,
ContextManager as ContextManager,
Generic,
Iterable,
Iterator,
Optional,
Type,
TypeVar,
overload,
)
from typing import IO, Any, Callable, ContextManager, Generic, Iterable, Iterator, Optional, Type, TypeVar, overload
if sys.version_info >= (3, 5):
from typing import AsyncContextManager, AsyncIterator

View File

@@ -102,7 +102,6 @@ configparser.SectionProxy.__getattr__
configparser.SectionProxy.getboolean
configparser.SectionProxy.getfloat
configparser.SectionProxy.getint
contextlib.ContextManager
csv.Dialect.delimiter
csv.Dialect.doublequote
csv.Dialect.lineterminator