summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2022-09-02 16:28:37 -0700
committerEli Schwartz <eschwartz@archlinux.org>2022-11-29 23:26:05 -0500
commita5d547e0d9ccb523f0baab7fd32e782aa075fb42 (patch)
tree7f4a22cba020b83720f09e76693991913f40dcbe
parent5794805f8e76dfe940f6c09d080d9068fe1ff98d (diff)
downloadmeson-a5d547e0d9ccb523f0baab7fd32e782aa075fb42.tar.gz
pylint: enable useless-return
-rw-r--r--.pylintrc1
-rw-r--r--mesonbuild/interpreterbase/interpreterbase.py1
-rw-r--r--mesonbuild/mdist.py1
3 files changed, 0 insertions, 3 deletions
diff --git a/.pylintrc b/.pylintrc
index 45fec9b0a..5b01181d3 100644
--- a/.pylintrc
+++ b/.pylintrc
@@ -74,7 +74,6 @@ disable=
unused-argument,
unused-variable,
use-implicit-booleaness-not-comparison,
- useless-return,
useless-super-delegation,
wrong-import-order,
wrong-import-position,
diff --git a/mesonbuild/interpreterbase/interpreterbase.py b/mesonbuild/interpreterbase/interpreterbase.py
index 2b8437c27..76fb465fd 100644
--- a/mesonbuild/interpreterbase/interpreterbase.py
+++ b/mesonbuild/interpreterbase/interpreterbase.py
@@ -577,7 +577,6 @@ class InterpreterBase:
if isinstance(value, MutableInterpreterObject):
value = copy.deepcopy(value)
self.set_variable(var_name, value)
- return None
def set_variable(self, varname: str, variable: T.Union[TYPE_var, InterpreterObject], *, holderify: bool = False) -> None:
if variable is None:
diff --git a/mesonbuild/mdist.py b/mesonbuild/mdist.py
index 3b8a67fed..0aa4d07df 100644
--- a/mesonbuild/mdist.py
+++ b/mesonbuild/mdist.py
@@ -82,7 +82,6 @@ def handle_dirty_opt(msg, allow_dirty: bool):
else:
mlog.error(msg + '\n' + 'Use --allow-dirty to ignore the warning and proceed anyway')
sys.exit(1)
- return
def process_submodules(src, distdir, options):
module_file = os.path.join(src, '.gitmodules')