Они используют много времени в коде, иногда в качестве значений по умолчанию для функций, как
Код: Выделить всё
def main_train(..., width: int = constants.WIDTH,...):
< /code>
В документации у меня есть: < /p>
Args:
width (int):
Width of the network from which the images will be processed. Must be a multiple of 32. The default is constants.WIDTH.
< /code>
Теперь, если я напишу функцию main_train, когда я наведу ее, чтобы увидеть помощь, я вижу константы. Всего, а не 416. Кроме того, при использовании Sphinx Docs показывают: < /p>
width (int) – Width of the network from which the images will be processed. Must be a multiple of 32. The default is constants.WIDTH.
< /code>
Но в Sphinx, если я посмотрю, как объявлена функция, я вижу: < /p>
main.main_train(path_home: PurePath, path_dataset: PurePath, template: List[PurePath], width: int = 416,
Подробнее здесь: https://stackoverflow.com/questions/796 ... isense-and