Skip to content

Commit 5afdd54

Browse files
committed
Use a TypeAlias
1 parent 4836e71 commit 5afdd54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/profiling/sampling/live_collector/trend_tracker.pyi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from typing import Any, Literal
2+
from typing_extensions import TypeAlias
23

3-
TrendDirection = Literal["up", "down", "stable"]
4+
TrendDirection: TypeAlias = Literal["up", "down", "stable"]
45

56
class TrendTracker:
67
CHANGE_THRESHOLD: float

0 commit comments

Comments
 (0)