The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
style(infra): use modern `Optional` typing in script (#33361)
Mason Daughertyffb1a08871c6
diff --git a/.github/scripts/get_min_versions.py b/.github/scripts/get_min_versions.pyindex c5c5ecc570..5669172866 100644--- a/.github/scripts/get_min_versions.py+++ b/.github/scripts/get_min_versions.py@@ -2,7 +2,6 @@import sysfrom collections import defaultdict-from typing import Optionalif sys.version_info >= (3, 11):import tomllib@@ -54,7 +53,7 @@ def get_pypi_versions(package_name: str) -> List[str]:return list(response.json()["releases"].keys())-def get_minimum_version(package_name: str, spec_string: str) -> Optional[str]:+def get_minimum_version(package_name: str, spec_string: str) -> str | None:"""Find the minimum published version that satisfies the given constraints.Args:@@ -114,7 +113,7 @@ def get_min_version_from_toml(versions_for: str,python_version: str,*,- include: Optional[list] = None,+ include: list | None = None,):# Parse the TOML filewith open(toml_path, "rb") as file: