MCPcopy Create free account
hub / github.com/PyCQA/flake8 / get_python_version

Function get_python_version

src/flake8/utils.py:265–275  ·  view source on GitHub ↗

Find and format the python implementation and version. :returns: Implementation name, version, and platform as a string.

()

Source from the content-addressed store, hash-verified

263
264
265def get_python_version() -> str:
266 """Find and format the python implementation and version.
267
268 :returns:
269 Implementation name, version, and platform as a string.
270 """
271 return "{} {} on {}".format(
272 platform.python_implementation(),
273 platform.python_version(),
274 platform.system(),
275 )
276
277
278def normalize_pypi_name(s: str) -> str:

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected