We can exclude specific members (e.g., __weakref__) from the docs using the 'exclude-members' option rather than using a custom function.