[Bf-blender-cvs] [6c8c8c20c73] master: Cleanup: quiet mypy type checking warnings
Campbell Barton
noreply at git.blender.org
Tue Jan 31 04:24:12 CET 2023
Commit: 6c8c8c20c73877caa7a5327025adea465f25b57a
Author: Campbell Barton
Date: Tue Jan 31 14:22:24 2023 +1100
Branches: master
https://developer.blender.org/rB6c8c8c20c73877caa7a5327025adea465f25b57a
Cleanup: quiet mypy type checking warnings
===================================================================
M build_files/utils/make_bpy_wheel.py
M build_files/utils/make_test.py
===================================================================
diff --git a/build_files/utils/make_bpy_wheel.py b/build_files/utils/make_bpy_wheel.py
index 9a33c9c1b68..79c0f91b425 100755
--- a/build_files/utils/make_bpy_wheel.py
+++ b/build_files/utils/make_bpy_wheel.py
@@ -24,7 +24,7 @@ import os
import re
import platform
import string
-import setuptools # type: ignore
+import setuptools
import sys
from typing import (
@@ -208,7 +208,7 @@ def main() -> None:
return paths
# Ensure this wheel is marked platform specific.
- class BinaryDistribution(setuptools.dist.Distribution): # type: ignore
+ class BinaryDistribution(setuptools.dist.Distribution):
def has_ext_modules(self) -> bool:
return True
diff --git a/build_files/utils/make_test.py b/build_files/utils/make_test.py
index 8e711d5e33a..e489bc85fc5 100755
--- a/build_files/utils/make_test.py
+++ b/build_files/utils/make_test.py
@@ -13,10 +13,10 @@ import sys
import make_utils
from make_utils import call
-# Parse arguments
+# Parse arguments.
-def parse_arguments():
+def parse_arguments() -> argparse.Namespace:
parser = argparse.ArgumentParser()
parser.add_argument("--ctest-command", default="ctest")
parser.add_argument("--cmake-command", default="cmake")
More information about the Bf-blender-cvs
mailing list