Test getfuncargnames for staticmethods
()
| 69 | |
| 70 | |
| 71 | def test_getfuncargnames_staticmethod(): |
| 72 | """Test getfuncargnames for staticmethods""" |
| 73 | |
| 74 | class A: |
| 75 | @staticmethod |
| 76 | def static(arg1, arg2, x=1): |
| 77 | raise NotImplementedError() |
| 78 | |
| 79 | assert getfuncargnames(A.static, cls=A) == ("arg1", "arg2") |
| 80 | |
| 81 | |
| 82 | def test_getfuncargnames_staticmethod_inherited() -> None: |
nothing calls this directly
no test coverage detected