summaryrefslogtreecommitdiff
path: root/SCons/Utilities/sconsign.py
diff options
context:
space:
mode:
Diffstat (limited to 'SCons/Utilities/sconsign.py')
-rw-r--r--SCons/Utilities/sconsign.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/SCons/Utilities/sconsign.py b/SCons/Utilities/sconsign.py
index ae6919693..c12782dd2 100644
--- a/SCons/Utilities/sconsign.py
+++ b/SCons/Utilities/sconsign.py
@@ -72,7 +72,7 @@ def my_import(mname):
class Flagger:
default_value = 1
- def __setitem__(self, item, value):
+ def __setitem__(self, item, value) -> None:
self.__dict__[item] = value
self.default_value = 0
@@ -201,7 +201,7 @@ def field(name, entry, verbose=Verbose):
return val
-def nodeinfo_raw(name, ninfo, prefix=""):
+def nodeinfo_raw(name, ninfo, prefix: str=""):
"""
This just formats the dictionary, which we would normally use str()
to do, except that we want the keys sorted for deterministic output.
@@ -219,7 +219,7 @@ def nodeinfo_raw(name, ninfo, prefix=""):
return name + ': {' + ', '.join(values) + '}'
-def nodeinfo_cooked(name, ninfo, prefix=""):
+def nodeinfo_cooked(name, ninfo, prefix: str=""):
try:
field_list = ninfo.field_list
except AttributeError:
@@ -239,7 +239,7 @@ def nodeinfo_cooked(name, ninfo, prefix=""):
nodeinfo_string = nodeinfo_cooked
-def printfield(name, entry, prefix=""):
+def printfield(name, entry, prefix: str="") -> None:
outlist = field("implicit", entry, 0)
if outlist:
if Verbose:
@@ -253,7 +253,7 @@ def printfield(name, entry, prefix=""):
print(" " + outact)
-def printentries(entries, location):
+def printentries(entries, location) -> None:
if Print_Entries:
for name in Print_Entries:
try:
@@ -282,7 +282,7 @@ def printentries(entries, location):
class Do_SConsignDB:
- def __init__(self, dbm_name, dbm):
+ def __init__(self, dbm_name, dbm) -> None:
self.dbm_name = dbm_name
self.dbm = dbm
@@ -346,7 +346,7 @@ class Do_SConsignDB:
self.printentries(dir, db[dir])
@staticmethod
- def printentries(dir, val):
+ def printentries(dir, val) -> None:
try:
print('=== ' + dir + ':')
except TypeError:
@@ -376,7 +376,7 @@ def Do_SConsignDir(name):
##############################################################################
-def main():
+def main() -> None:
global Do_Call
global nodeinfo_string
global args