-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
Is your feature request related to a problem? Please describe.
When building with warnings as errors (-W flag), mock objects cause build failure (for example below).
WARNING: A mocked object is detected: 'example.mock.object'
This occurs with class attributes, or enum members, pointing to mock objects, even if they are documented with #:, which produce valid documentation.
Describe the solution you'd like
As suggested in #9631, it would be useful to have a subtype on the warning (e.g. mock_objects) so these warnings can be ignored.
Describe alternatives you've considered
Suppressing all autodoc warnings works, but this isn't ideal.
Additional context