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
2424Releases
2525---------------------
2626
27+ v1.2.3
28+ ================
29+ - Fixed annotations not getting obtained for function definitions.
30+
31+
2732v1.2.2
2833================
2934- Fixed incorrect ``Union `` processing if it was used in a ``List `` annotation.
3035
3136
32-
3337v1.2.1
3438================
3539- Replaced raw usage of ``.__annotations__ `` with :func: `typing.get_typehints `.
Original file line number Diff line number Diff line change 33Works with Tkinter / TTKBootstrap.
44"""
55
6- __version__ = "1.2.2 "
6+ __version__ = "1.2.3 "
77
88from .object_frame import *
99from .annotations import *
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ def get_annotations(class_) -> dict:
106106 for k , v in annotations .items ():
107107 annotations [k ] = generic_name_value .get (v , v )
108108 else :
109- annotations = get_type_hints (annotations )
109+ annotations = get_type_hints (class_ )
110110
111111 additional_annotations = ADDITIONAL_ANNOTATIONS .get (class_ , {})
112112 annotations = {** annotations , ** additional_annotations }
You can’t perform that action at this time.
0 commit comments