(self, cb: t.Any)
| 915 | """ |
| 916 | |
| 917 | def __init__(self, cb: t.Any) -> None: |
| 918 | self.cb = cb |
| 919 | # Bound methods have an additional 'self' argument. |
| 920 | offset = -1 if isinstance(self.cb, types.MethodType) else 0 |
| 921 | self.nargs = len(getargspec(cb)[0]) + offset |
| 922 | if self.nargs > 4: |
| 923 | raise TraitError("a trait changed callback must have 0-4 arguments.") |
| 924 | |
| 925 | def __eq__(self, other: object) -> bool: |
| 926 | # The wrapper is equal to the wrapped element |
nothing calls this directly
no test coverage detected