blakeblackshear.frigate/docker/main
Martin Weinelt 4d4d54d030
Fix various typing issues (#18187)
* Fix the `Any` typing hint treewide

There has been confusion between the Any type[1] and the any function[2]
in typing hints.

[1] https://docs.python.org/3/library/typing.html#typing.Any
[2] https://docs.python.org/3/library/functions.html#any

* Fix typing for various frame_shape members

Frame shapes are most likely defined by height and width, so a single int
cannot express that.

* Wrap gpu stats functions in Optional[]

These can return `None`, so they need to be `Type | None`, which is what
`Optional` expresses very nicely.

* Fix return type in get_latest_segment_datetime

Returns a datetime object, not an integer.

* Make the return type of FrameManager.write optional

This is necessary since the SharedMemoryFrameManager.write function can
return None.

* Fix total_seconds() return type in get_tz_modifiers

The function returns a float, not an int.

https://docs.python.org/3/library/datetime.html#datetime.timedelta.total_seconds

* Account for floating point results in to_relative_box

Because the function uses division the return types may either be int or
float.

* Resolve ruff deprecation warning

The config has been split into formatter and linter, and the global
options are deprecated.
2025-05-13 08:27:20 -06:00
..
rootfs Fix various typing issues (#18187) 2025-05-13 08:27:20 -06:00
build_nginx.sh Upgrade bundled nginx to 1.27.4 (#17419) 2025-03-27 12:48:43 -06:00
build_ov_model.py Update base image (#15103) 2025-02-08 12:47:01 -06:00
build_pysqlite3.sh Semantic Search for Detections (#11899) 2024-08-29 20:19:50 -06:00
build_sqlite_vec.sh Fix build (#16393) 2025-02-08 14:51:42 -06:00
Dockerfile Avoid unhealthy container when Frigate is stopping (#18021) 2025-05-07 19:43:51 -05:00
fake_frigate_run Community Supported Boards Framework (#7114) 2023-07-23 16:45:29 -05:00
install_deps.sh Improve ffmpeg versions handling (#16712) 2025-02-20 18:07:41 -07:00
install_hailort.sh Include arch in name (#17667) 2025-04-12 07:50:17 -06:00
install_s6_overlay.sh Update s6 overlay version to 3.1.5.0 in the Docker installation script (#7584) 2023-09-01 07:01:19 -05:00
install_tempio.sh fix tempio install for arm64 (#11691) 2024-06-02 08:47:11 -05:00
requirements-dev.txt Docs improvements (#8641) 2023-11-18 08:04:43 -06:00
requirements-ov.txt upgrade to latest openvino version (#11563) 2024-05-27 14:49:35 -06:00
requirements-wheels.txt revert onnx runtime update (#18074) 2025-05-06 09:02:34 -05:00
requirements.txt Update python deps (#15618) 2025-02-08 12:47:01 -06:00