Normalise use of Never vs NoReturn (#8549)

This commit is contained in:
Alex Waygood
2022-08-17 22:53:40 +02:00
committed by GitHub
parent 0b28177268
commit 2c052651e9
4 changed files with 18 additions and 17 deletions

View File

@@ -1,9 +1,9 @@
import sys
import threading
from typing import NoReturn
from typing_extensions import Never
_global_lock: threading.Lock
class _LoopBoundMixin:
if sys.version_info < (3, 11):
def __init__(self, *, loop: NoReturn = ...) -> None: ...
def __init__(self, *, loop: Never = ...) -> None: ...