From 2f15b0d4dbb6ef85f0c3351c9b8aa05ca76171a7 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Fri, 5 Aug 2022 11:52:08 +0300 Subject: [PATCH] `_sendfile_compatible` is a class variable (#8496) --- stdlib/asyncio/proactor_events.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/asyncio/proactor_events.pyi b/stdlib/asyncio/proactor_events.pyi index db88661a1..704939450 100644 --- a/stdlib/asyncio/proactor_events.pyi +++ b/stdlib/asyncio/proactor_events.pyi @@ -1,7 +1,7 @@ import sys from collections.abc import Mapping from socket import socket -from typing import Any, Protocol +from typing import Any, ClassVar, Protocol from typing_extensions import Literal from . import base_events, constants, events, futures, streams, transports @@ -58,7 +58,7 @@ class _ProactorDuplexPipeTransport(_ProactorReadPipeTransport, _ProactorBaseWrit class _ProactorSocketTransport(_ProactorReadPipeTransport, _ProactorBaseWritePipeTransport, transports.Transport): - _sendfile_compatible: constants._SendfileMode + _sendfile_compatible: ClassVar[constants._SendfileMode] def __init__( self, loop: events.AbstractEventLoop,