Skip to content

Commit d25600b

Browse files
committed
Fix
1 parent 5b59ff0 commit d25600b

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

docs/source/changelog.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,18 @@ Glossary
2626
Releases
2727
---------------------
2828

29-
v1.4.8
29+
v1.4.8 / v1.4.9
3030
=====================
3131
- Fixed :class:`tkclasswiz.convert.convert_objects_to_script` function:
3232

33-
- not being able to convert global enums (or enum flags)
34-
- duplicated import strings
35-
33+
- not being able to convert global enums (or enum flags).
34+
- duplicated import strings.
35+
3636
- Fixed flags not definable as flags when editing list-like objects.
3737
- Fixed tooltip style not adjusting when using ttkbootstrap.
3838
E. g., in dark mode only the text was updated, but background was still the same.
3939
- Fixed the Python3.10+ Union type (``A | B``) not being detected as an union type.
40+
- Fixed UnionType import error.
4041

4142

4243
v1.4.7

tkclasswiz/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
SOFTWARE.
2828
"""
2929

30-
__version__ = "1.4.8"
30+
__version__ = "1.4.9"
3131

3232

3333
from .object_frame import *

tkclasswiz/annotations.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
from inspect import isclass, isabstract
77
from itertools import product, chain
88
from contextlib import suppress
9-
from types import UnionType
9+
try:
10+
from types import UnionType
11+
except ImportError:
12+
UnionType = Union
1013

1114
from .utilities import issubclass_noexcept
1215
from .doc import doc_category

0 commit comments

Comments
 (0)