Test getfuncargnames for inherited staticmethods (#8061)
()
| 60 | |
| 61 | |
| 62 | def test_getfuncargnames_staticmethod_inherited() -> None: |
| 63 | """Test getfuncargnames for inherited staticmethods (#8061)""" |
| 64 | |
| 65 | class A: |
| 66 | @staticmethod |
| 67 | def static(arg1, arg2, x=1): |
| 68 | raise NotImplementedError() |
| 69 | |
| 70 | class B(A): |
| 71 | pass |
| 72 | |
| 73 | assert getfuncargnames(B.static, cls=B) == ("arg1", "arg2") |
| 74 | |
| 75 | |
| 76 | def test_getfuncargnames_partial(): |
nothing calls this directly
no test coverage detected