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

Method is_unsupported

crates/ruff_python_parser/src/error.rs:1137–1142  ·  view source on GitHub ↗

Returns whether or not this kind of syntax is unsupported on `target_version`.

(self, target_version: PythonVersion)

Source from the content-addressed store, hash-verified

1135
1136 /// Returns whether or not this kind of syntax is unsupported on `target_version`.
1137 pub(crate) fn is_unsupported(self, target_version: PythonVersion) -> bool {
1138 match self.changed_version() {
1139 Change::Added(version) => target_version < version,
1140 Change::Removed(version) => target_version >= version,
1141 }
1142 }
1143
1144 /// Returns `true` if this kind of syntax is supported on `target_version`.
1145 pub(crate) fn is_supported(self, target_version: PythonVersion) -> bool {

Callers 2

is_supportedMethod · 0.80

Calls 1

changed_versionMethod · 0.80

Tested by

no test coverage detected