mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-09-25 23:18:58 +03:00
types-peewee 4.0 types model fields precisely, so 17 `type: ignore` comments and 2 `cast(str, ...)` calls are no longer needed. Its stubs type `.namedtuples()` and `.dicts()` queries as returning model instances, so the review cleanup reads namedtuple fields by name and the storage usage query casts its dict rows. `start_time` is declared `DateTimeField` but stores unix timestamps, so two reads cast it like `debug_replay.py` already does. `Export` gets an annotation for the `export_case_id` attribute peewee adds at runtime.
5 lines
47 B
Plaintext
5 lines
47 B
Plaintext
ruff == 0.15.20
|
|
|
|
# types
|
|
types-peewee == 4.0.*
|