diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index 58452b9..8fd176e 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -26,17 +26,18 @@ Glossary Releases --------------------- -v1.4.8 +v1.4.8 / v1.4.9 ===================== - Fixed :class:`tkclasswiz.convert.convert_objects_to_script` function: - - not being able to convert global enums (or enum flags) - - duplicated import strings - + - not being able to convert global enums (or enum flags). + - duplicated import strings. + - Fixed flags not definable as flags when editing list-like objects. - Fixed tooltip style not adjusting when using ttkbootstrap. E. g., in dark mode only the text was updated, but background was still the same. - Fixed the Python3.10+ Union type (``A | B``) not being detected as an union type. +- Fixed UnionType import error. v1.4.7 diff --git a/tkclasswiz/__init__.py b/tkclasswiz/__init__.py index fd6de8a..6048fcb 100644 --- a/tkclasswiz/__init__.py +++ b/tkclasswiz/__init__.py @@ -27,7 +27,7 @@ SOFTWARE. """ -__version__ = "1.4.8" +__version__ = "1.4.9" from .object_frame import * diff --git a/tkclasswiz/annotations.py b/tkclasswiz/annotations.py index b9161fb..71e5b37 100644 --- a/tkclasswiz/annotations.py +++ b/tkclasswiz/annotations.py @@ -6,7 +6,10 @@ from inspect import isclass, isabstract from itertools import product, chain from contextlib import suppress -from types import UnionType +try: + from types import UnionType +except ImportError: + UnionType = Union from .utilities import issubclass_noexcept from .doc import doc_category