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
[P2] · Part of #392 · аудит docs/audit-2026-07-14.md (P-1, P-2, P-3)
Что сделать
Убрать pathlib.Path | str из публичных path-сигнатур и защитный pathlib.Path(...) из тел (storage.py:33,61, oauth_flow.py:55,135, ide.py:61, glossary/json_provider.py:107-126) — прямое нарушение инварианта issue refactor(api): Path instead of str in public contracts #73.
[P2]· Part of #392 · аудитdocs/audit-2026-07-14.md(P-1, P-2, P-3)Что сделать
pathlib.Path | strиз публичных path-сигнатур и защитныйpathlib.Path(...)из тел (storage.py:33,61,oauth_flow.py:55,135,ide.py:61,glossary/json_provider.py:107-126) — прямое нарушение инварианта issue refactor(api): Path instead of str in public contracts #73.diagnostic_stepik.py:dict→dict[str, Any], снять ~9# type: ignore[type-arg](строки 101-243).Counterвместо ручного счётчика (stats.py:142,commands.py:65);re.Match[str](normalizers.py:37);path.open()вместоopen(path); рассмотретьwith subprocess.Popen(...)(runner.py:238).Acceptance criteria
mypyчист без новых# type: ignore; сигнатуры путей —Path.Links
Инвариант CLAUDE.md #73/#49.