File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -24,12 +24,16 @@ Glossary
24
24
Releases
25
25
---------------------
26
26
27
+ v1.2.3
28
+ ================
29
+ - Fixed annotations not getting obtained for function definitions.
30
+
31
+
27
32
v1.2.2
28
33
================
29
34
- Fixed incorrect ``Union `` processing if it was used in a ``List `` annotation.
30
35
31
36
32
-
33
37
v1.2.1
34
38
================
35
39
- Replaced raw usage of ``.__annotations__ `` with :func: `typing.get_typehints `.
Original file line number Diff line number Diff line change 3
3
Works with Tkinter / TTKBootstrap.
4
4
"""
5
5
6
- __version__ = "1.2.2 "
6
+ __version__ = "1.2.3 "
7
7
8
8
from .object_frame import *
9
9
from .annotations import *
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def get_annotations(class_) -> dict:
106
106
for k , v in annotations .items ():
107
107
annotations [k ] = generic_name_value .get (v , v )
108
108
else :
109
- annotations = get_type_hints (annotations )
109
+ annotations = get_type_hints (class_ )
110
110
111
111
additional_annotations = ADDITIONAL_ANNOTATIONS .get (class_ , {})
112
112
annotations = {** annotations , ** additional_annotations }
You can’t perform that action at this time.
0 commit comments