MCPcopy
hub / github.com/psf/black / _target_versions_exceed_runtime

Function _target_versions_exceed_runtime

src/black/__init__.py:206–212  ·  view source on GitHub ↗
(
    target_versions: set[TargetVersion],
)

Source from the content-addressed store, hash-verified

204
205
206def _target_versions_exceed_runtime(
207 target_versions: set[TargetVersion],
208) -> bool:
209 if not target_versions:
210 return False
211 max_target_minor = max(tv.value for tv in target_versions)
212 return max_target_minor > sys.version_info[1]
213
214
215def _version_mismatch_message(target_versions: set[TargetVersion]) -> str:

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected