chore(release): 0.0.7
Squash-merge lib-standardisation: adopt repo standards across packaging, tooling, docs, and CI. - standardize pyproject.toml (canonical packaging, lint config, extras, GSDFC pydoclint) - add py.typed marker, modernize type hints and Google-style docstrings - nest generated docs under docs/lib and docs/mcp; add hand-written wiki - adopt standard Type A PyPI CI pipeline (tag==version guard + quality gate) - promote generated CHANGELOG.md; bump version to 0.0.7
This commit is contained in:
@@ -33,7 +33,7 @@ _items: Dict[int, dict] = {
|
||||
_next_id = 3
|
||||
|
||||
|
||||
def list_items():
|
||||
def list_items() -> list[dict]:
|
||||
"""
|
||||
Return all items in the data store.
|
||||
|
||||
@@ -48,7 +48,7 @@ def list_items():
|
||||
return list(_items.values())
|
||||
|
||||
|
||||
def get_item(item_id: int):
|
||||
def get_item(item_id: int) -> dict:
|
||||
"""
|
||||
Retrieve a single item by ID.
|
||||
|
||||
@@ -68,7 +68,7 @@ def get_item(item_id: int):
|
||||
return _items[item_id]
|
||||
|
||||
|
||||
def create_item(payload: dict):
|
||||
def create_item(payload: dict) -> dict:
|
||||
"""
|
||||
Create a new item in the data store.
|
||||
|
||||
@@ -92,7 +92,7 @@ def create_item(payload: dict):
|
||||
return item
|
||||
|
||||
|
||||
def update_item(item_id: int, payload: dict):
|
||||
def update_item(item_id: int, payload: dict) -> dict:
|
||||
"""
|
||||
Replace an existing item in the data store.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user