Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhozic committed Jan 16, 2024
1 parent ccf5432 commit b42f384
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion docs/source/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,16 @@ Glossary
Releases
---------------------

v1.2.3
================
- Fixed annotations not getting obtained for function definitions.


v1.2.2
================
- Fixed incorrect ``Union`` processing if it was used in a ``List`` annotation.



v1.2.1
================
- Replaced raw usage of ``.__annotations__`` with :func:`typing.get_typehints`.
Expand Down
2 changes: 1 addition & 1 deletion tkclasswiz/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Works with Tkinter / TTKBootstrap.
"""

__version__ = "1.2.2"
__version__ = "1.2.3"

from .object_frame import *
from .annotations import *
Expand Down
2 changes: 1 addition & 1 deletion tkclasswiz/annotations.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def get_annotations(class_) -> dict:
for k, v in annotations.items():
annotations[k] = generic_name_value.get(v, v)
else:
annotations = get_type_hints(annotations)
annotations = get_type_hints(class_)

additional_annotations = ADDITIONAL_ANNOTATIONS.get(class_, {})
annotations = {**annotations, **additional_annotations}
Expand Down

0 comments on commit b42f384

Please sign in to comment.