[stdlib] Mark constants as Final (#14577)

This commit is contained in:
Semyon Moroz authored and GitHub committed 2025-08-15 13:19:03 +02:00
1 parent 554701e9b6
commit 85a787bba3
62 files changed
+1601 -1583

No files matched your search

+3 -3
View File
@@ -2,13 +2,13 @@ import sys
from _typeshed import FileDescriptor, FileDescriptorLike, Unused
from abc import ABCMeta, abstractmethod
from collections.abc import Mapping
from typing import Any, NamedTuple
from typing import Any, Final, NamedTuple
from typing_extensions import Self, TypeAlias
_EventMask: TypeAlias = int
EVENT_READ: _EventMask
EVENT_WRITE: _EventMask
EVENT_READ: Final = 1
EVENT_WRITE: Final = 2
class SelectorKey(NamedTuple):
fileobj: FileDescriptorLike