6 lines
320 B
Plaintext
6 lines
320 B
Plaintext
---
|
|
description: Specifies the use of 'def' and 'async def' for function definitions within FastAPI routers.
|
|
globs: **/routers/*.py
|
|
---
|
|
- Use def for pure functions and async def for asynchronous operations.
|
|
- Use type hints for all function signatures. Prefer Pydantic models over raw dictionaries for input validation. |