Skip to content

Commit 0010c70

Browse files
committed
optimize
1 parent 71617e0 commit 0010c70

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tkclasswiz/object_frame/window.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def _create_and_add_frame(
108108
kwargs
109109
):
110110
frame: NewObjectFrameBase
111-
class_origin = get_origin(class_) # Remove any Generic type subscriptions
112-
if class_origin is None:
113-
class_origin = class_
111+
class_origin = get_origin(class_) or class_ # Remove any Generic type subscriptions
114112

115113
if issubclass_noexcept(class_origin, Flag):
116114
frame_class = NewObjectFrameFlag

0 commit comments

Comments
 (0)