Use Final for unittest constants (#12447)

This commit is contained in:
Max Muoto authored and GitHub committed 2024-07-28 12:03:02 +02:00
1 parent 0ffa2c5597
commit b40eb642e0
5 files changed
+30 -17

No files matched your search

+3 -3
View File
@@ -2,14 +2,14 @@ import sys
import unittest.case
from _typeshed import OptExcInfo
from collections.abc import Callable
from typing import Any, TextIO, TypeVar
from typing import Any, Final, TextIO, TypeVar
from typing_extensions import TypeAlias
_F = TypeVar("_F", bound=Callable[..., Any])
_DurationsType: TypeAlias = list[tuple[str, float]]
STDOUT_LINE: str
STDERR_LINE: str
STDOUT_LINE: Final[str]
STDERR_LINE: Final[str]
# undocumented
def failfast(method: _F) -> _F: ...