diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2091fc1..98b3d29 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -123,7 +123,10 @@ jobs: - name: Install dependencies run: | - python -m pip install -U mypy types-Markdown + python -m pip install -U types-Markdown + + # Exclude version due to: https://github.com/python/mypy/issues/16770 + python -m pip install -U "mypy != 1.8.0" - name: Type Check run: | diff --git a/systemrdl/__about__.py b/systemrdl/__about__.py index beee42a..5976158 100644 --- a/systemrdl/__about__.py +++ b/systemrdl/__about__.py @@ -1 +1 @@ -__version__ = "1.27.2" +__version__ = "1.27.3" diff --git a/systemrdl/node.py b/systemrdl/node.py index 62fae63..9176002 100644 --- a/systemrdl/node.py +++ b/systemrdl/node.py @@ -1089,8 +1089,8 @@ def is_volatile(self) -> bool: (hw in (rdltypes.AccessType.rw, rdltypes.AccessType.rw1, rdltypes.AccessType.w, rdltypes.AccessType.w1)) or self.get_property('counter') - or self.get_property('hwset') - or self.get_property('hwclr') + or bool(self.get_property('hwset')) + or bool(self.get_property('hwclr')) ) @property diff --git a/test/run.sh b/test/run.sh index 58a039e..cfecec9 100755 --- a/test/run.sh +++ b/test/run.sh @@ -21,7 +21,9 @@ source $this_dir/.venv/bin/activate # Install test dependencies pip install -U pip setuptools wheel -pip install pytest pytest-cov coverage pylint mypy parameterized types-Markdown pytest-parallel +pip install pytest pytest-cov coverage pylint parameterized types-Markdown pytest-parallel +# Exclude version due to: https://github.com/python/mypy/issues/16770 +pip install "mypy != 1.8.0" # Install dut export SYSTEMRDL_REQUIRE_BINARY_BUILD=1