Skip to content

Commit 715fb70

Browse files
committed
Replace type check with current_thread() == main_thread()
1 parent e78f278 commit 715fb70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

curtsies/input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
def is_main_thread():
2929
# type: () -> bool
30-
return isinstance(threading.current_thread(), threading._MainThread) # type: ignore
30+
return threading.current_thread() == threading.main_thread()
3131

3232

3333
class ReplacedSigIntHandler:

0 commit comments

Comments
 (0)