Skip to content

Commit b3eebe3

Browse files
authored
refactor: use TypeAlias and Final for stubtest consts (#13333)
1 parent 43476aa commit b3eebe3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mypy/stubtest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ def __repr__(self) -> str:
4444
return "MISSING"
4545

4646

47-
MISSING = Missing()
47+
MISSING: typing_extensions.Final = Missing()
4848

4949
T = TypeVar("T")
50-
MaybeMissing = Union[T, Missing]
50+
MaybeMissing: typing_extensions.TypeAlias = Union[T, Missing]
5151

52-
_formatter = FancyFormatter(sys.stdout, sys.stderr, False)
52+
_formatter: typing_extensions.Final = FancyFormatter(sys.stdout, sys.stderr, False)
5353

5454

5555
def _style(message: str, **kwargs: Any) -> str:

0 commit comments

Comments
 (0)