]> Nutra Git (v1) - nutratech/cli.git/commitdiff
test python-3.4 incompatible type annotation
authorShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:20:48 +0000 (13:20 -0400)
committerShane Jaroch <chown_tee@proton.me>
Fri, 19 Apr 2024 17:20:48 +0000 (13:20 -0400)
ntclient/services/usda.py

index 5138e8a86511b8985b148a5e3992f0b7454e1776..c4f2f947ee7cd8fbe46cbecc760c2e94fc8f1c83 100644 (file)
@@ -63,7 +63,7 @@ def sort_foods(
     # TODO: sub shrt_desc for long if available, and support config.FOOD_NAME_TRUNC
 
     def print_results(
-        _results: Sequence[Sequence[Optional[float]]], _nutrient_id: int
+        _results: list[list[Optional[float]]], _nutrient_id: int
     ) -> None:
         """Prints truncated list for sort"""
         nutrients = sql_nutrients_overview()