Skip to content

Commit f0a5ef5

Browse files
Export TypedDictProtocol, ClassVarTypeHint, TypeAliasTypeHint
1 parent 908b20c commit f0a5ef5

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.changelog/_unreleased.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[[entries]]
2+
id = "d7921d6e-555c-4ae7-ac16-2298c7d77966"
3+
type = "fix"
4+
description = "Export `TypedDictProtocol` again in `typeapi` module (regression introduced in 2.2.0)"
5+
author = "@NiklasRosenstein"
6+
7+
[[entries]]
8+
id = "34ea93f2-c302-46b8-bb23-d30a4b212c6a"
9+
type = "fix"
10+
description = "Export `ClassVarTypeHint` and `TypeAliasTypeHint` in `typeapi`"
11+
author = "@NiklasRosenstein"

src/typeapi/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,23 @@
1010
TypeVarTypeHint,
1111
UnionTypeHint,
1212
)
13-
from .utils import get_annotations, is_typed_dict, type_repr
13+
from .utils import TypedDictProtocol, get_annotations, is_typed_dict, type_repr
1414

1515
__all__ = [
1616
# .typehint
1717
"AnnotatedTypeHint",
1818
"ClassTypeHint",
19+
"ClassVarTypeHint",
1920
"ForwardRefTypeHint",
2021
"LiteralTypeHint",
2122
"TupleTypeHint",
23+
"TypeAliasTypeHint",
2224
"TypeHint",
2325
"TypeVarTypeHint",
2426
"UnionTypeHint",
2527
# .utils
2628
"get_annotations",
2729
"is_typed_dict",
2830
"type_repr",
31+
"TypedDictProtocol",
2932
]

0 commit comments

Comments
 (0)