We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8807c19 commit 366083bCopy full SHA for 366083b
etils/edc/cast_utils.py
@@ -17,7 +17,6 @@
17
from __future__ import annotations
18
19
import dataclasses
20
-import typing
21
from typing import Any, TypeVar
22
23
from etils.edc import field_utils
@@ -30,18 +29,7 @@
30
29
_IS_NORMALIZED = object()
31
32
33
-if typing.TYPE_CHECKING:
34
- # TODO(b/254514368): Remove hack
35
- class _AutoCastMeta(type):
36
-
37
- def __getitem__(cls, value):
38
- return value
39
40
- class AutoCast(metaclass=_AutoCastMeta):
41
- pass
42
43
-else:
44
- AutoCast = Annotated[_T, _IS_NORMALIZED] # pytype: disable=invalid-typevar
+AutoCast = Annotated[_T, _IS_NORMALIZED]
45
46
47
def make_auto_cast_descriptor(
0 commit comments