Skip to content

Commit c205ac0

Browse files
committed
Fix CI by adding type annotations to test file
1 parent 58c3e0e commit c205ac0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/@tests/test_cases/check_enum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import enum
44
import sys
5-
from typing import Literal, Type
5+
from typing import Any, Literal, Type
66
from typing_extensions import assert_type
77

88
A = enum.Enum("A", "spam eggs bacon")
@@ -41,7 +41,7 @@ class Foo(enum.StrEnum):
4141
if sys.version_info >= (3, 13):
4242

4343
class MultiValueEnum(enum.Enum):
44-
def __new__(cls, value, *values):
44+
def __new__(cls, value: object, *values: Any) -> "MultiValueEnum":
4545
self = object.__new__(cls)
4646
self._value_ = value
4747
for v in values:

0 commit comments

Comments
 (0)