Skip to content

docs: Improve docstring coverage#6168

Open
ndonkoHenri wants to merge 32 commits intomainfrom
improve-docs
Open

docs: Improve docstring coverage#6168
ndonkoHenri wants to merge 32 commits intomainfrom
improve-docs

Conversation

@ndonkoHenri
Copy link
Contributor

No description provided.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 15, 2026

Deploying flet-examples with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2383d19
Status: ✅  Deploy successful!
Preview URL: https://b62171a1.flet-examples.pages.dev
Branch Preview URL: https://improve-docs.flet-examples.pages.dev

View logs

Copy link
Contributor

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @ndonkoHenri, your pull request is larger than the review limit of 150000 diff characters

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 15, 2026

Deploying flet-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2383d19
Status: ✅  Deploy successful!
Preview URL: https://af2cda13.flet-docs.pages.dev
Branch Preview URL: https://improve-docs.flet-docs.pages.dev

View logs

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR significantly improves docstring coverage across the Flet Python SDK codebase, targeting comprehensive documentation for better developer experience. The changes include adding detailed docstrings to utility functions, controls, authentication modules, CLI tools, and extension packages. Additionally, it updates documentation URLs from the legacy flet.dev/docs to the new docs.flet.dev domain and modernizes the documentation infrastructure.

Changes:

  • Added comprehensive docstrings to 100+ Python modules covering utilities, controls, components, hooks, authentication, and CLI tools
  • Updated documentation infrastructure: removed griffe-modernized-annotations dependency, centralized .docstr.yaml configuration, and enhanced docstring coverage badge generation for all packages
  • Migrated documentation URLs from flet.dev/docs to docs.flet.dev across docstrings and examples

Reviewed changes

Copilot reviewed 274 out of 295 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/python/pyproject.toml Removed griffe-modernized-annotations dependency from docs group
sdk/python/packages/flet/mkdocs.yml Updated mkdocs configuration to enable modernize_annotations directly and exclude files from documentation
sdk/python/.docstr.yaml Added centralized docstring coverage configuration for all Python packages
sdk/python/Taskfile.yml Enhanced docs-coverage task to generate badges for all SDK packages
sdk/python/packages/flet/src/flet/utils/*.py Added docstrings to utility modules (typing_utils, strings, once, object_model, network, locks, etc.)
sdk/python/packages/flet/src/flet/controls/*.py Added docstrings to control classes and dataclasses (types, template_route, ref, query_string, keys, etc.)
sdk/python/packages/flet/src/flet/controls/material/*.py Added docstrings to Material controls (tooltip, time_picker, tabs, snack_bar, navigation components, etc.)
sdk/python/packages/flet/src/flet/controls/cupertino/*.py Added docstrings to Cupertino controls (date_picker, timer_picker, textfield, switch, button, colors)
sdk/python/packages/flet/src/flet/controls/core/*.py Added docstrings to core controls (view, text, stack, canvas, drag_target, dismissible, etc.)
sdk/python/packages/flet/src/flet/components/*.py Added docstrings to component system (hooks, memo, public_utils)
sdk/python/packages/flet/src/flet/auth/*.py Added docstrings to authentication modules (user, oauth providers, authorization)
sdk/python/packages/flet-cli/src/flet_cli/*.py Added docstrings to CLI commands and utilities
sdk/python/packages/flet-web/src/flet_web/*.py Added docstrings to web-specific modules
sdk/python/packages/flet-*/README.md Added docstring coverage badges to extension package READMEs
sdk/python/packages/flet/docs/**/*.md Updated documentation URLs and fixed typos
packages/flet/lib/src/utils/*.dart Consolidated MaterialState/WidgetState utilities and refactored enum parsing

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant