You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Platform API docs omit the "desktop" OS value and is_desktop #39
The quick-reference table in docs/api/platform.md (around line 19) says Platform.OS is "ios", "android", or "test", and only lists is_ios / is_android / is_test. Since the desktop preview backend landed, the code also reports "desktop" and exposes Platform.is_desktop (see src/pythonnative/platform.py, lines 39, 77-78, 83, and 94).
Suggested fix
Update the quick-reference table to include "desktop" in the Platform.OS row and add Platform.is_desktop to the booleans row, with a short note that "desktop" means the pn preview Tkinter backend. Skim the rest of the page for other spots that enumerate the OS values.
Verification
Run mkdocs build --strict.
Suggested commit message
docs(platform): document the desktop OS value and is_desktop
Hi there, I would like to work on this. My plan is to update the docs/api/platform.md to also include desktop for the Platform.OS attribute, add the Platform.is_desktop attribute, and the pn preview Tkinter backend note, following your suggested fix.
After that, I will run the verification you recommended as well :)
Activity
nigelseah24 commentedon Sep 1, 2026
Hi there, I would like to work on this. My plan is to update the docs/api/platform.md to also include desktop for the Platform.OS attribute, add the Platform.is_desktop attribute, and the
pn previewTkinter backend note, following your suggested fix.After that, I will run the verification you recommended as well :)
docs(platform): document the desktop OS value and is_desktop (#64)