mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-25 12:26:44 +08:00
Further reduce use of deprecated contextlib aliases (#6370)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from typing import ContextManager, Iterable, Iterator, NoReturn, Sized, overload
|
||||
from contextlib import AbstractContextManager
|
||||
from typing import Iterable, Iterator, NoReturn, Sized, overload
|
||||
|
||||
ACCESS_DEFAULT: int
|
||||
ACCESS_READ: int
|
||||
@@ -24,7 +25,7 @@ if sys.platform != "win32":
|
||||
|
||||
PAGESIZE: int
|
||||
|
||||
class mmap(ContextManager[mmap], Iterable[int], Sized):
|
||||
class mmap(AbstractContextManager[mmap], Iterable[int], Sized):
|
||||
if sys.platform == "win32":
|
||||
def __init__(self, fileno: int, length: int, tagname: str | None = ..., access: int = ..., offset: int = ...) -> None: ...
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user