MCPcopy Create free account
hub / github.com/astral-sh/ruff / latest_ty

Method latest_ty

crates/ruff_python_ast/src/python_version.rs:74–77  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72 }
73
74 pub const fn latest_ty() -> Self {
75 // Make sure to update the default value for `EnvironmentOptions::python_version` when bumping this version.
76 Self::PY315
77 }
78
79 pub const fn as_tuple(self) -> (u8, u8) {
80 (self.major, self.minor)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected