Spurious docstring appears in API docs #7208

Closed
opened 2025-12-29 20:20:28 +01:00 by adam · 0 comments
Owner

Originally created by @candlerb on GitHub (Nov 9, 2022).

Originally assigned to: @arthanson on GitHub.

NetBox version

v3.3.7

Python version

3.8

Steps to Reproduce

  1. Go to /api/docs/
  2. Scroll down to GET /dcim/devices/ (dcim_devices_list) and expand

Expected Behavior

Either a meaningful description of what /dcim/devices/ does, or no comment.

Observed Behavior

A comment has been picked up from the source code which isn't meaningful here: "Overrides ListModelMixin to allow processing ExportTemplates."

image

Perhaps this should be changed from a docstring to a regular comment?

Originally created by @candlerb on GitHub (Nov 9, 2022). Originally assigned to: @arthanson on GitHub. ### NetBox version v3.3.7 ### Python version 3.8 ### Steps to Reproduce 1. Go to `/api/docs/` 2. Scroll down to `GET /dcim/devices/ (dcim_devices_list)` and expand ### Expected Behavior Either a meaningful description of what `/dcim/devices/` does, or no comment. ### Observed Behavior A comment has been picked up from the source code which isn't meaningful here: "Overrides ListModelMixin to allow processing ExportTemplates." ![image](https://user-images.githubusercontent.com/44789/200775440-fb586991-e82f-46c0-8887-dd5d1e4837c5.png) Perhaps this should be changed from a docstring to a regular comment?
adam added the status: acceptedtype: documentation labels 2025-12-29 20:20:28 +01:00
adam closed this issue 2025-12-29 20:20:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7208