feat: indie status page MVP -- FastAPI + SQLite
- 8 DB models (services, incidents, monitors, subscribers, etc.) - Full CRUD API for services, incidents, monitors - Public status page with live data - Incident detail page with timeline - API key authentication - Uptime monitoring scheduler - 13 tests passing - TECHNICAL_DESIGN.md with full spec
This commit is contained in:
commit
902133edd3
4655 changed files with 1342691 additions and 0 deletions
26
venv/lib/python3.11/site-packages/mypy/server/trigger.py
Normal file
26
venv/lib/python3.11/site-packages/mypy/server/trigger.py
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
"""AST triggers that are used for fine-grained dependency handling."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Final
|
||||
|
||||
# Used as a suffix for triggers to handle "from m import *" dependencies (see also
|
||||
# make_wildcard_trigger)
|
||||
|
||||
WILDCARD_TAG: Final = "[wildcard]"
|
||||
|
||||
|
||||
def make_trigger(name: str) -> str:
|
||||
return f"<{name}>"
|
||||
|
||||
|
||||
def make_wildcard_trigger(module: str) -> str:
|
||||
"""Special trigger fired when any top-level name is changed in a module.
|
||||
|
||||
Note that this is different from a module trigger, as module triggers are only
|
||||
fired if the module is created, deleted, or replaced with a non-module, whereas
|
||||
a wildcard trigger is triggered for namespace changes.
|
||||
|
||||
This is used for "from m import *" dependencies.
|
||||
"""
|
||||
return f"<{module}{WILDCARD_TAG}>"
|
||||
Loading…
Add table
Add a link
Reference in a new issue