We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71617e0 commit 0010c70Copy full SHA for 0010c70
tkclasswiz/object_frame/window.py
@@ -108,9 +108,7 @@ def _create_and_add_frame(
108
kwargs
109
):
110
frame: NewObjectFrameBase
111
- class_origin = get_origin(class_) # Remove any Generic type subscriptions
112
- if class_origin is None:
113
- class_origin = class_
+ class_origin = get_origin(class_) or class_ # Remove any Generic type subscriptions
114
115
if issubclass_noexcept(class_origin, Flag):
116
frame_class = NewObjectFrameFlag
0 commit comments