Test getfuncargnames for staticmethods
()
| 49 | |
| 50 | |
| 51 | def test_getfuncargnames_staticmethod(): |
| 52 | """Test getfuncargnames for staticmethods""" |
| 53 | |
| 54 | class A: |
| 55 | @staticmethod |
| 56 | def static(arg1, arg2, x=1): |
| 57 | raise NotImplementedError() |
| 58 | |
| 59 | assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2") |
| 60 | |
| 61 | |
| 62 | def test_getfuncargnames_staticmethod_inherited() -> None: |
nothing calls this directly
no test coverage detected