Mkdocs Code Annotations

Sub-skill of mkdocs: Code Annotations.

vamseeachanta d504f77 424 B Updated

File contents

Code Annotations

Code Annotations

def calculate_area(radius: float) -> float:  # (1)!
    """Calculate the area of a circle."""
    import math  # (2)!
    return math.pi * radius ** 2  # (3)!
  1. Type hints improve code readability
  2. Import inside function for demonstration
  3. Uses the formula: A = pi * r^2

vamseeachanta/workspace-hub/tree/main/.agents/skills/_internal/documentation/mkdocs/code-annotations commit d504f77258

Frequently asked questions

npx skillmds@latest add vamseeachanta/mkdocs-code-annotations