diff --git a/crates/ruff_python_ast/src/python_version.rs b/crates/ruff_python_ast/src/python_version.rs index 2cedb435fd..82f34f2a48 100644 --- a/crates/ruff_python_ast/src/python_version.rs +++ b/crates/ruff_python_ast/src/python_version.rs @@ -67,8 +67,8 @@ impl PythonVersion { } pub const fn latest_ty() -> Self { - // Make sure to update the default value for `EnvironmentOptions::python_version` when bumping this version. - Self::PY313 + // Make sure to update the default value for `EnvironmentOptions::python_version` when bumping this version. + Self::PY314 } pub const fn as_tuple(self) -> (u8, u8) { diff --git a/crates/ty/docs/cli.md b/crates/ty/docs/cli.md index f9f5580f2b..4c44f523d7 100644 --- a/crates/ty/docs/cli.md +++ b/crates/ty/docs/cli.md @@ -76,7 +76,7 @@ over all configuration files.

This is used to specialize the type of sys.platform and will affect the visibility of platform-specific functions and attributes. If the value is set to all, no assumptions are made about the target platform. If unspecified, the current system's platform will be used.

--python-version, --target-version version

Python version to assume when resolving types.

The Python version affects allowed syntax, type definitions of the standard library, and type definitions of first- and third-party modules that are conditional on the Python version.

-

If a version is not specified on the command line or in a configuration file, ty will try the following techniques in order of preference to determine a value: 1. Check for the project.requires-python setting in a pyproject.toml file and use the minimum version from the specified range 2. Check for an activated or configured Python environment and attempt to infer the Python version of that environment 3. Fall back to the latest stable Python version supported by ty (currently Python 3.13)

+

If a version is not specified on the command line or in a configuration file, ty will try the following techniques in order of preference to determine a value: 1. Check for the project.requires-python setting in a pyproject.toml file and use the minimum version from the specified range 2. Check for an activated or configured Python environment and attempt to infer the Python version of that environment 3. Fall back to the latest stable Python version supported by ty (see ty check --help output)

Possible values: