Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix type annotations in sst_unittest_support.py #1176

Open
wants to merge 10 commits into
base: devel
Choose a base branch
from
17 changes: 10 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
[tool.mypy]
cache_dir = "build/.mypy_cache"
explicit_package_bases = true
mypy_path = "$MYPY_CONFIG_FILE_DIR/src/sst/core/testingframework"
# This should be 3.6 but is not supported with the newest versions of mypy.
python_version = "3.8"

warn_unused_ignores = true

warn_return_any = true
warn_unused_configs = true

disallow_untyped_defs = true
strict = true

exclude = [
'^scripts/',
'^tests/',
]

[[tool.mypy.overrides]]
module = "sst"
module = [
"blessings",
"sst",
"testtools",
"testtools.testsuite",
]
ignore_missing_imports = true
2 changes: 1 addition & 1 deletion src/sst/core/model/python/unittests/test-ua.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
ua3_id_before = id(ua3)
ua3 /= ua2
if id(ua3) == ua3_id_before:
print("ERROR: \= operator returned the same object")
print(r"ERROR: \= operator returned the same object")
print(ua3)
print(ua4)

Expand Down
Loading
Loading