Returns whether or not this kind of syntax is unsupported on `target_version`.
(self, target_version: PythonVersion)
| 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 { |
no test coverage detected