Length

Summary

Package:

Units

Doc-string:

documented

File

Expected

Covered

Uncovered

Coverage

Length.py

4

3

1

75.0%

Source

myPackage/Units/Length.pydocumentedundocumentedignoredexcludednot counted
1"""Lengths and their conversion."""
...
3
4if sys.version_info >= (3, 12):
5	def toMeter(value: float, unit: str) -> float:
6		"""Convert a length to meters."""
		...
8else:
9	def toMeter(value: float, unit: str) -> float:
		...
11
12FACTORS = {
13	"m":  1.0,
14	"km": 1000.0,
15}  #: Factor per unit.