Skip to content

Commit 2329450

Browse files
sumansebastinas
authored andcommitted
Replace NoReturn with Never
1 parent 7238851 commit 2329450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bpython/args.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
import os
3737
import sys
3838
from pathlib import Path
39-
from typing import Tuple, List, Optional, NoReturn, Callable
39+
from typing import Tuple, List, Optional, Never, Callable
4040
from types import ModuleType
4141

4242
from . import __version__, __copyright__
@@ -51,7 +51,7 @@ class ArgumentParserFailed(ValueError):
5151

5252

5353
class RaisingArgumentParser(argparse.ArgumentParser):
54-
def error(self, msg: str) -> NoReturn:
54+
def error(self, msg: str) -> Never:
5555
raise ArgumentParserFailed()
5656

5757

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy