# HG changeset patch
# User jfp <jf.pieronne@laposte.net>
# Date 1673624963 -3600
#      Fri Jan 13 16:49:23 2023 +0100
# Node ID 26d029029aff6749b8ab567cc6062ecf137ff3e3
# Parent  d052b3f28585ce273a491f2b0ff79465f619ebb4
Make vscode happy

diff --git a/secrules/rules02.py b/secrules/rules02.py
--- a/secrules/rules02.py
+++ b/secrules/rules02.py
@@ -29,7 +29,8 @@
         print('=========', file=fo)
 
     with FindFile(b'SYS$SYSROOT:[000000...]*.*') as fi:
-        for fn in fi:
+        for fn in fi:  # type:ignore
+            fn: bytes
             it = (
                 itemList.itemList(
                     code=ossdef.OSS__PROTECTION, dtype=itemList.il_unsignedWord
diff --git a/secrules/rules09.py b/secrules/rules09.py
--- a/secrules/rules09.py
+++ b/secrules/rules09.py
@@ -22,11 +22,11 @@
         print('RULE 0901', file=fo)
         print('=========', file=fo)
 
-    it = [
+    it = (
         itemList.itemList(
             code=ossdef.OSS__PROTECTION, dtype=itemList.il_unsignedWord
         ),
-    ]
+    )
     with FindFile(b'SYS$STARTUP:*.*', b'') as ifn:
         for fn in ifn:   # type: ignore
             fn: bytes
diff --git a/secrules/rules11.py b/secrules/rules11.py
--- a/secrules/rules11.py
+++ b/secrules/rules11.py
@@ -84,11 +84,11 @@
 
     all_users = user.all_users()
 
-    it = [
+    it = (
         itemList.itemList(
             code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
         ),
-    ]
+    )
     for u in list(all_users.values()):
         df: bytes = u.defdev + u.defdir + b'MAIL.MAI'
         if file_exists(df):
@@ -412,11 +412,11 @@
         print('RULE 1114', file=fo)
         print('=========', file=fo)
 
-    it = [
+    it = (
         itemList.itemList(
             code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
         ),
-    ]
+    )
 
     own: int = starlet.get_security(
         objnam='SYS$SYSTEM:VMSMAIL_PROFILE.DATA', clsnam='FILE', itmlst=it
diff --git a/secrules/rules13.py b/secrules/rules13.py
--- a/secrules/rules13.py
+++ b/secrules/rules13.py
@@ -112,11 +112,11 @@
     if not fmt:
         print('RULE 1304', file=fo)
         print('=========', file=fo)
-    it = [
+    it = (
         itemList.itemList(
             code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
         ),
-    ]
+    )
     all_users = user.all_users()
     for u in list(all_users.values()):
         fn: bytes = u.defdev + u.defdir
diff --git a/secrules/rules14.py b/secrules/rules14.py
--- a/secrules/rules14.py
+++ b/secrules/rules14.py
@@ -15,8 +15,8 @@
 
     with os.popen('install list/full') as p:
         r = [x[:-1].rstrip() for x in p]
-    dspec = None
-    fspec = None
+    dspec = ''
+    fspec = ''
     priv = None
     auth = None
     hasPriv = False
@@ -27,7 +27,7 @@
             continue
         if l[0] != ' ':
             dspec = l.replace('.000000', '')
-            fspec = None
+            fspec = ''
         elif ';' in l:
             priv = auth = None
             hasPriv = False