pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/pkgtools/url2pkg/files



Module Name:    pkgsrc
Committed By:   rillig
Date:           Sun Feb  6 17:11:37 UTC 2022

Modified Files:
        pkgsrc/pkgtools/url2pkg/files: url2pkg.py

Log Message:
url2pkg: add type annotation for usage


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 pkgsrc/pkgtools/url2pkg/files/url2pkg.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/pkgtools/url2pkg/files/url2pkg.py
diff -u pkgsrc/pkgtools/url2pkg/files/url2pkg.py:1.35 pkgsrc/pkgtools/url2pkg/files/url2pkg.py:1.36
--- pkgsrc/pkgtools/url2pkg/files/url2pkg.py:1.35       Sat Jan  1 15:29:14 2022
+++ pkgsrc/pkgtools/url2pkg/files/url2pkg.py    Sun Feb  6 17:11:37 2022
@@ -1,5 +1,5 @@
 #! @PYTHONBIN@
-# $NetBSD: url2pkg.py,v 1.35 2022/01/01 15:29:14 rillig Exp $
+# $NetBSD: url2pkg.py,v 1.36 2022/02/06 17:11:37 rillig Exp $
 
 # Copyright (c) 2019 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -47,8 +47,8 @@ import re
 import subprocess
 import sys
 from pathlib import Path
-from typing import Any, Callable, Dict, List, NamedTuple, Optional, Set, \
-    Tuple, Union
+from typing import Any, Callable, Dict, List, NamedTuple, NoReturn, \
+    Optional, Set, Tuple, Union
 
 
 class Var(NamedTuple):
@@ -1203,7 +1203,7 @@ class Adjuster:
             self.g.bmake('distinfo')
 
 
-def usage():
+def usage() -> NoReturn:
     sys.exit(f'usage: {sys.argv[0]} [-v|--verbose] URL')
 
 



Home | Main Index | Thread Index | Old Index