summaryrefslogtreecommitdiff
path: root/SCons/Node/Alias.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2023-05-03 18:29:26 -0700
committerGitHub <noreply@github.com>2023-05-03 18:29:26 -0700
commit239f437b463dc948690473830f1816e9a67b72c2 (patch)
tree203b499babac9dbed56afbd1e1eea548ac1b9932 /SCons/Node/Alias.py
parent6ce33bdadec1cf558a6d0df27a6a083516d6cf23 (diff)
parent5717e06c245d99923f5c4a6e786a564799871c49 (diff)
downloadscons-git-239f437b463dc948690473830f1816e9a67b72c2.tar.gz
Merge branch 'master' into maint/validateOptions
Diffstat (limited to 'SCons/Node/Alias.py')
-rw-r--r--SCons/Node/Alias.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/SCons/Node/Alias.py b/SCons/Node/Alias.py
index 1125c22f6..55c4795e2 100644
--- a/SCons/Node/Alias.py
+++ b/SCons/Node/Alias.py
@@ -78,7 +78,7 @@ class AliasNodeInfo(SCons.Node.NodeInfoBase):
return state
- def __setstate__(self, state):
+ def __setstate__(self, state) -> None:
"""
Restore the attributes from a pickled state.
"""
@@ -98,7 +98,7 @@ class Alias(SCons.Node.Node):
NodeInfo = AliasNodeInfo
BuildInfo = AliasBuildInfo
- def __init__(self, name):
+ def __init__(self, name) -> None:
super().__init__()
self.name = name
self.changed_since_last_build = 1
@@ -107,16 +107,16 @@ class Alias(SCons.Node.Node):
def str_for_display(self):
return '"' + self.__str__() + '"'
- def __str__(self):
+ def __str__(self) -> str:
return self.name
- def make_ready(self):
+ def make_ready(self) -> None:
self.get_csig()
really_build = SCons.Node.Node.build
is_up_to_date = SCons.Node.Node.children_are_up_to_date
- def is_under(self, dir):
+ def is_under(self, dir) -> int:
# Make Alias nodes get built regardless of
# what directory scons was run from. Alias nodes
# are outside the filesystem:
@@ -128,7 +128,7 @@ class Alias(SCons.Node.Node):
childsigs = [n.get_csig() for n in self.children()]
return ''.join(childsigs)
- def sconsign(self):
+ def sconsign(self) -> None:
"""An Alias is not recorded in .sconsign files"""
pass
@@ -136,11 +136,11 @@ class Alias(SCons.Node.Node):
#
#
- def build(self):
+ def build(self) -> None:
"""A "builder" for aliases."""
pass
- def convert(self):
+ def convert(self) -> None:
try: del self.builder
except AttributeError: pass
self.reset_executor()