Skip to content

Commit b42f384

Browse files
committed
Fix
1 parent ccf5432 commit b42f384

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/source/changelog.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,16 @@ Glossary
2424
Releases
2525
---------------------
2626

27+
v1.2.3
28+
================
29+
- Fixed annotations not getting obtained for function definitions.
30+
31+
2732
v1.2.2
2833
================
2934
- Fixed incorrect ``Union`` processing if it was used in a ``List`` annotation.
3035

3136

32-
3337
v1.2.1
3438
================
3539
- Replaced raw usage of ``.__annotations__`` with :func:`typing.get_typehints`.

tkclasswiz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Works with Tkinter / TTKBootstrap.
44
"""
55

6-
__version__ = "1.2.2"
6+
__version__ = "1.2.3"
77

88
from .object_frame import *
99
from .annotations import *

tkclasswiz/annotations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)