mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user