Test getfuncargnames for inherited staticmethods (#8061)
()
| 80 | |
| 81 | |
| 82 | def test_getfuncargnames_staticmethod_inherited() -> None: |
| 83 | """Test getfuncargnames for inherited staticmethods (#8061)""" |
| 84 | |
| 85 | class A: |
| 86 | @staticmethod |
| 87 | def static(arg1, arg2, x=1): |
| 88 | raise NotImplementedError() |
| 89 | |
| 90 | class B(A): |
| 91 | pass |
| 92 | |
| 93 | assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2") |
| 94 | |
| 95 | |
| 96 | @pytest.mark.skipif( |
nothing calls this directly
no test coverage detected