diff --git a/.vscode/launch.json b/.vscode/launch.json
deleted file mode 100644
index ae998543b0f8288275b68f8821088479f721d60b..0000000000000000000000000000000000000000
--- a/.vscode/launch.json
+++ /dev/null
@@ -1,17 +0,0 @@
-{
-    // Use IntelliSense to learn about possible attributes.
-    // Hover to view descriptions of existing attributes.
-    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
-    "version": "0.2.0",
-    "configurations": [
-        {
-            "name": "Pytest: Debugger",
-            "type": "debugpy",
-            "request": "launch",
-            "program": "${workspaceFolder}/venv/bin/pytest",
-            "console": "integratedTerminal",
-            "justMyCode": false,
-            "args": ["--no-cov"],
-        }
-    ]
-}
\ No newline at end of file
diff --git a/dsiUnits-js/package.json b/dsiUnits-js/package.json
index 7dfad0207b9699556acb69d4b9a24676bf0aa713..30a112324ae5231f05dba1b92ac16b974a81d959 100644
--- a/dsiUnits-js/package.json
+++ b/dsiUnits-js/package.json
@@ -1,6 +1,6 @@
 {
   "name": "dsiunits-js",
-  "version": "0.9.0",
+  "version": "0.9.1",
   "type": "module",
   "main": "dist/index.cjs.js",
   "module": "dist/index.esm.js",
diff --git a/pyproject.toml b/pyproject.toml
index 26bff3b7f8179230f9bd3bd74b97b5d2b817c576..4fd46ce5a5b9e8f89afa88aec137c4944ef24e00 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
 
 [project]
 name = "dsiunits"  # Ensure this is correctly specified
-version = "2.4.0"
+version = "2.4.1"
 description = "This is a Python module for handling the SI units as objects in Python, parsing them from strings and converting them to Latex and Unicode, as well as performing math operations and calculating scale factors."
 authors = [
     { name="Benedikt Seeger", email="benedikt.seeger@ptb.de" },
diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644
index ed5564fcd28318bd1d0224b136f74075a42bc6b0..0000000000000000000000000000000000000000
--- a/setup.cfg
+++ /dev/null
@@ -1,14 +0,0 @@
-[metadata]
-name = dsiUnits
-version = 2.4.0
-description = This is a Python module for handling the SI units as objects in Python, parsing them from strings and converting them to Latex and Unicode, as well as performing math operations and calculating scale factors.
-long_description = file: README.md
-
-[options]
-python_requires = >=3.7
-
-[options.extras_require]
-testing =
-    pytest>=7.4.1
-    pytest-cov>=4.1.0
-    # Any other testing dependencies
diff --git a/src/dsiUnits.py b/src/dsiUnits.py
index 7da858b3779d99b38e0e5bb6747b8bacd96e3958..8af756b903826eea71ef77864fb466f075f73a38 100644
--- a/src/dsiUnits.py
+++ b/src/dsiUnits.py
@@ -588,6 +588,10 @@ class dsiUnit:
                 result += str(node)
         return result
 
+    def __hash__(self):
+        # Use the hash of an immutable attribute (here, self.value)
+        return hash(str(self))
+
     def __repr__(self):
         contentStr = self.toUTF8()
         if not self.valid:
diff --git a/tests/test_dsiUnits.py b/tests/test_dsiUnits.py
index 28f0e652de6ff715ced10334e712572fb1e93387..e1c1a5c360aae0aac06623b61ab56b9fa3023f02 100644
--- a/tests/test_dsiUnits.py
+++ b/tests/test_dsiUnits.py
@@ -618,3 +618,11 @@ def test_exponentMath():
     assert m2.getBaseUnit(km2) == m2
     assert m2.getScaleFactor(km2) == 1.0e6
 
+
+def test_hash():
+    Hmm2=hash(dsiUnit(r'\milli\metre\tothe{2}'))
+    Hkm2=hash(dsiUnit(r'\kilo\metre\tothe{2}'))
+    Hm2=hash(dsiUnit(r'\metre\tothe{2}'))
+    Hm2_2=hash(dsiUnit(r'\metre\tothe{2}'))
+    assert hash(Hmm2) != hash(Hkm2) != hash(Hm2)
+    assert hash(Hm2) == hash(Hm2_2)