nebius/SWE-bench-extra huggingface dataset:
Repository: mkorpela/overrides

Issue:
@staticmethod doesn't work with @overrides

```
@staticmethod
@overrides
def get_all_statements(player_index: int) -> List[Statement]:
```

AssertionError: Method get_all_statements overrides but does not have @overrides decorator

```
@overrides
@staticmethod
def get_all_statements(player_index: int) -> List[Statement]:
```

@staticmethod
File "/Users/tyleryep/miniconda3/lib/python3.7/site-packages/overrides/overrides.py", line 57, in overrides
    for super_class in _get_base_classes(sys._getframe(2), method.__globals__):
AttributeError: 'staticmethod' object has no attribute '__globals__'



Comments:

Patch:
diff --git a/overrides/enforce.py b/overrides/enforce.py
index 29c97ff..95e8607 100644
--- a/overrides/enforce.py
+++ b/overrides/enforce.py
@@ -27,7 +27,7 @@ class EnforceOverridesMeta(ABCMeta):
 
     @staticmethod
     def handle_special_value(value):
-        if isinstance(value, classmethod):
+        if isinstance(value, classmethod) or isinstance(value, staticmethod):
             value = value.__get__(None, dict)
         elif isinstance(value, property):
             value = value.fget


Test patch:
diff --git a/tests/test_enforce.py b/tests/test_enforce.py
index c73de72..6566684 100644
--- a/tests/test_enforce.py
+++ b/tests/test_enforce.py
@@ -22,15 +22,17 @@ class Enforcing(EnforceOverrides):
     def nonfinal_property(self):
         return "super_property"
 
+    @staticmethod
+    def nonfinal_staticmethod():
+        return "super_staticmethod"
+
     @classmethod
     def nonfinal_classmethod(cls):
         return "super_classmethod"
 
 
 class EnforceTests(unittest.TestCase):
-
     def test_enforcing_when_all_ok(self):
-
         class Subclazz(Enforcing):
             classVariableIsOk = "OK!"
 
@@ -72,6 +74,18 @@ class EnforceTests(unittest.TestCase):
         self.assertNotEqual(PropertyOverrider.nonfinal_property,
                             Enforcing.nonfinal_property)
 
+    def test_enforcing_when_staticmethod_overriden(self):
+        class StaticMethodOverrider(Enforcing):
+            @staticmethod
+            @overrides
+            def nonfinal_staticmethod():
+                return "subclass_staticmethod"
+
+        self.assertNotEqual(
+            StaticMethodOverrider.nonfinal_staticmethod(),
+            Enforcing.nonfinal_staticmethod(),
+        )
+
     def test_enforcing_when_classmethod_overriden(self):
         class ClassMethodOverrider(Enforcing):
             @classmethod
Repository: mlenzen/collections-extended

Issue:
bijection.__init__ tuples need to be len == 2

Comments:

Patch:
diff --git a/HISTORY.rst b/HISTORY.rst
index c371394..ac95bf9 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -34,6 +34,8 @@ Added
 Fixed
 """""
 
+* tuples passed to the bijection constructor must have len == 2, not >= 2
+
 Deprecated
 """"""""""
 
diff --git a/collections_extended/bijection.py b/collections_extended/bijection.py
index 5547bf6..591216a 100644
--- a/collections_extended/bijection.py
+++ b/collections_extended/bijection.py
@@ -25,7 +25,8 @@ class bijection(MutableMapping):
 					self[key] = value
 			else:
 				for pair in iterable:
-					self[pair[0]] = pair[1]
+					key, value = pair
+					self[key] = value
 		for key, value in kwarg.items():
 			self[key] = value
 


Test patch:
diff --git a/tests/test_bijection.py b/tests/test_bijection.py
index 576cd77..48af061 100644
--- a/tests/test_bijection.py
+++ b/tests/test_bijection.py
@@ -34,6 +34,11 @@ def test_init_from_pairs():
 	assert bijection({'a': 1, 'b': 2}) == bijection((('a', 1), ('b', 2)))
 
 
+def test_init_from_triples_fails():
+	with pytest.raises(ValueError):
+		bijection((('a', 1, 0), ('b', 2, 0), ))
+
+
 def test_repr():
 	"""Test __repr__."""
 	b = bijection()